mirror of
https://github.com/boostorg/regex.git
synced 2025-07-05 08:36:31 +02:00
31 lines
940 B
C++
31 lines
940 B
C++
|
|
module;
|
|
|
|
#if defined(__cpp_lib_modules) || (defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 193833135))
|
|
#define BOOST_REGEX_USE_STD_MODULE
|
|
#endif
|
|
|
|
#ifndef BOOST_REGEX_DETAIL_NS
|
|
#define BOOST_REGEX_DETAIL_NS re_detail_600
|
|
#endif
|
|
|
|
#if !defined(BOOST_REGEX_USE_STD_MODULE) && !defined(MSVC_EXPERIMENTAL_STD_MODULE)
|
|
#include <memory>
|
|
#endif
|
|
|
|
module boost.regex;
|
|
|
|
#if !defined(BOOST_REGEX_USE_STD_MODULE) && defined(MSVC_EXPERIMENTAL_STD_MODULE)
|
|
import std.core;
|
|
#endif
|
|
|
|
namespace boost::detail {
|
|
|
|
std::shared_ptr<BOOST_REGEX_DETAIL_NS::basic_regex_implementation<wchar_t, basic_regex<wchar_t>::traits_type> >
|
|
create_implemenation(const wchar_t* p1, const wchar_t* p2, basic_regex<wchar_t>::flag_type f, std::shared_ptr<boost::regex_traits_wrapper<basic_regex<wchar_t>::traits_type> > ptraits)
|
|
{
|
|
return create_implemenation<wchar_t, basic_regex<wchar_t>::flag_type, basic_regex<wchar_t>::traits_type>(p1, p2, f, ptraits);
|
|
}
|
|
|
|
}
|