/* * * 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 instances.cpp * VERSION see * DESCRIPTION: Defines those template instances that are placed in the * library rather than in the users object files. */ // // note no include guard, we may include this multiple times: // #ifndef BOOST_REGEX_NO_EXTERNAL_TEMPLATES namespace boost{ // // this header can be included multiple times, each time with // a different character type, BOOST_REGEX_CHAR_T must be defined // first: // #ifndef BOOST_REGEX_CHAR_T # error "BOOST_REGEX_CHAR_T not defined" #endif // // what follows is compiler specific: // #if defined(__BORLANDC__) && (__BORLANDC__ < 0x600) #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif # ifndef BOOST_REGEX_INSTANTIATE # pragma option push -Jgx # endif template class BOOST_REGEX_DECL basic_regex< BOOST_REGEX_CHAR_T >; # ifndef BOOST_REGEX_INSTANTIATE # pragma option pop # endif #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_SUFFIX #endif #elif defined(BOOST_MSVC) || defined(BOOST_INTEL) || (defined(__GNUC__) && (__GNUC__ >= 3)) # ifndef BOOST_REGEX_INSTANTIATE # ifdef __GNUC__ # define template __extension__ extern template # else # define template extern template # endif # endif # ifdef BOOST_MSVC # pragma warning(push) # pragma warning(disable : 4251 4231 4660) # endif template class BOOST_REGEX_DECL basic_regex< BOOST_REGEX_CHAR_T >; #if !BOOST_WORKAROUND(BOOST_MSVC, <= 1200) template class BOOST_REGEX_DECL match_results< const BOOST_REGEX_CHAR_T* >; #endif #ifndef BOOST_NO_STD_ALLOCATOR template class BOOST_REGEX_DECL ::boost::re_detail::perl_matcher::allocator_type, boost::regex_traits >; #endif #if !(defined(BOOST_DINKUMWARE_STDLIB) && (BOOST_DINKUMWARE_STDLIB <= 1)) && !(defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 800)) #if !BOOST_WORKAROUND(BOOST_MSVC, <= 1200) template class BOOST_REGEX_DECL match_results< std::basic_string::const_iterator >; #endif #ifndef BOOST_NO_STD_ALLOCATOR template class BOOST_REGEX_DECL ::boost::re_detail::perl_matcher< std::basic_string::const_iterator, match_results< std::basic_string::const_iterator >::allocator_type, boost::regex_traits >; #endif #endif # ifdef BOOST_MSVC # pragma warning(pop) # endif # ifdef template # undef template # endif #endif } // namespace boost #endif // BOOST_REGEX_NO_EXTERNAL_TEMPLATES