Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/regex/src/usinstances.cpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 2.2 KB
Line 
1/*
2 *
3 * Copyright (c) 1998-2002
4 * John Maddock
5 *
6 * Use, modification and distribution are subject to the
7 * Boost Software License, Version 1.0. (See accompanying file
8 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 *
10 */
11
12 /*
13  *   LOCATION:    see http://www.boost.org for most recent version.
14  *   FILE:        winstances.cpp
15  *   VERSION:     see <boost/version.hpp>
16  *   DESCRIPTION: regex unsigned short template instances (MSVC only).
17  */
18
19#define BOOST_REGEX_SOURCE
20
21#include <boost/regex/config.hpp>
22
23#if !defined(BOOST_NO_WREGEX) && defined(BOOST_REGEX_HAS_OTHER_WCHAR_T) && !defined(BOOST_REGEX_NO_EXTERNAL_TEMPLATES)
24#define BOOST_REGEX_US_INSTANTIATE
25
26#ifdef _DLL_CPPLIB
27#include <boost/detail/workaround.hpp>
28//
29// This is a horrible workaround, without declaring these symbols extern we get
30// duplicate symbol errors when linking if the application is built without
31// /Zc:wchar_t
32//
33namespace std{
34template _CRTIMP2 bool __cdecl operator==(
35   const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&,
36   const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&);
37template _CRTIMP2 bool __cdecl operator==(
38   const unsigned short *,
39   const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&);
40template _CRTIMP2 bool __cdecl operator==(
41   const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&,
42   const unsigned short *);
43template _CRTIMP2 bool __cdecl operator<(
44   const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&,
45   const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&);
46template _CRTIMP2 bool __cdecl operator>(
47   const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&,
48   const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&);
49#if BOOST_WORKAROUND(BOOST_MSVC, > 1300) && BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1400))
50template<> _CRTIMP2 std::size_t __cdecl char_traits<unsigned short>::length(unsigned short const*);
51#endif
52}
53#endif
54
55
56#include <boost/regex.hpp>
57
58#endif
59
60
Note: See TracBrowser for help on using the repository browser.