/* * * Copyright (c) 1998-2002 * John Maddock * * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) * */ /* * LOCATION: see http://www.boost.org for most recent version. * FILE: winstances.cpp * VERSION: see * DESCRIPTION: regex unsigned short template instances (MSVC only). */ #define BOOST_REGEX_SOURCE #include #if !defined(BOOST_NO_WREGEX) && defined(BOOST_REGEX_HAS_OTHER_WCHAR_T) && !defined(BOOST_REGEX_NO_EXTERNAL_TEMPLATES) #define BOOST_REGEX_US_INSTANTIATE #ifdef _DLL_CPPLIB #include // // This is a horrible workaround, without declaring these symbols extern we get // duplicate symbol errors when linking if the application is built without // /Zc:wchar_t // namespace std{ template _CRTIMP2 bool __cdecl operator==( const basic_string, allocator >&, const basic_string, allocator >&); template _CRTIMP2 bool __cdecl operator==( const unsigned short *, const basic_string, allocator >&); template _CRTIMP2 bool __cdecl operator==( const basic_string, allocator >&, const unsigned short *); template _CRTIMP2 bool __cdecl operator<( const basic_string, allocator >&, const basic_string, allocator >&); template _CRTIMP2 bool __cdecl operator>( const basic_string, allocator >&, const basic_string, allocator >&); #if BOOST_WORKAROUND(BOOST_MSVC, > 1300) && BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1400)) template<> _CRTIMP2 std::size_t __cdecl char_traits::length(unsigned short const*); #endif } #endif #include #endif