/* * * Copyright (c) 2022 * 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) * */ #ifdef __GNUC__ // // For some reason, GCC chokes unless all std lib includes appear // before module imports: // #include #include #include #include #include #include #include #include #endif import boost.regex; #define BOOST_REGEX_TEST_MODULE #include int main() { boost::function_requires< boost::RegexTraitsConcept< boost::regex_traits > >(); #ifndef BOOST_NO_STD_LOCALE boost::function_requires< boost::BoostRegexConcept< boost::basic_regex > > >(); #ifndef BOOST_NO_WREGEX boost::function_requires< boost::BoostRegexConcept< boost::basic_regex > > >(); #endif #endif boost::function_requires< boost::BoostRegexConcept< boost::basic_regex > > >(); #ifndef BOOST_NO_WREGEX boost::function_requires< boost::BoostRegexConcept< boost::basic_regex > > >(); #endif #if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32) boost::function_requires< boost::BoostRegexConcept< boost::basic_regex > > >(); #ifndef BOOST_NO_WREGEX boost::function_requires< boost::BoostRegexConcept< boost::basic_regex > > >(); #endif #endif // // now test the regex_traits concepts: // typedef boost::basic_regex > regex_traits_tester_type1; boost::function_requires< boost::BoostRegexConcept< regex_traits_tester_type1 > >(); typedef boost::basic_regex > regex_traits_tester_type2; boost::function_requires< boost::BaseRegexConcept< regex_traits_tester_type2 > >(); return 0; }