| 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 | // |
|---|
| 33 | namespace std{ |
|---|
| 34 | template _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> >&); |
|---|
| 37 | template _CRTIMP2 bool __cdecl operator==( |
|---|
| 38 | const unsigned short *, |
|---|
| 39 | const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&); |
|---|
| 40 | template _CRTIMP2 bool __cdecl operator==( |
|---|
| 41 | const basic_string<unsigned short, char_traits<unsigned short>, allocator<unsigned short> >&, |
|---|
| 42 | const unsigned short *); |
|---|
| 43 | template _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> >&); |
|---|
| 46 | template _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)) |
|---|
| 50 | template<> _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 | |
|---|