OSSIA
Open Scenario System for Interactive Application
regex_fwd.hpp
1 #pragma once
2 #include <ossia/detail/std_fwd.hpp>
3 
4 OSSIA_STD_BEGIN_NAMESPACE_CXX11
5 #if defined(_MSC_VER)
6 template <typename T>
7 class regex_traits;
8 #else
9 template <typename T>
10 struct regex_traits;
11 #endif
12 
13 template <typename T, typename Traits>
14 class basic_regex;
15 
16 using regex = basic_regex<char, regex_traits<char>>;
17 OSSIA_STD_END_NAMESPACE_CXX11
18 
19 #if defined(_MSC_VER)
20 #if defined(NDEBUG)
21 static const constexpr auto sizeof_regex = 40;
22 #else
23 static const constexpr auto sizeof_regex = 96;
24 #endif
25 #elif defined(_LIBCPP_VERSION)
26 static const constexpr auto sizeof_regex = 64;
27 #elif defined(__GLIBCXX__)
28 static const constexpr auto sizeof_regex = 32;
29 #else
30 #include <regex>
31 #define sizeof_regex sizeof(std::regex);
32 #endif