38#if defined( _LIBCPP_VERSION )
39#if _LIBCPP_VERSION >= 190102
41#include <wx/unichar.h>
44struct std::char_traits<wxUniChar>
46 using char_type = wxUniChar;
48 using off_type = std::streamoff;
49 using pos_type = std::streampos;
50 using state_type = mbstate_t;
52 static inline void assign( char_type& __c1,
const char_type& __c2 )
noexcept { __c1 = __c2; }
54 static inline bool eq( char_type __c1, char_type __c2 )
noexcept {
return __c1 == __c2; }
56 static inline bool lt( char_type __c1, char_type __c2 )
noexcept {
return __c1 < __c2; }
58 static constexpr int compare(
const char_type* __s1,
const char_type* __s2,
size_t __n )
60 for( ; __n; --__n, ++__s1, ++__s2 )
62 if( lt( *__s1, *__s2 ) )
65 if( lt( *__s2, *__s1 ) )
72 static size_t length(
const char_type* __s )
76 for( ; !eq( *__s, char_type( 0 ) ); ++__s )
82 static constexpr const char_type*
find(
const char_type* __s,
size_t __n,
const char_type& __a )
94 static constexpr char_type*
move( char_type* __s1,
const char_type* __s2,
size_t __n )
99 char_type* __r = __s1;
103 for( ; __n; --__n, ++__s1, ++__s2 )
104 assign( *__s1, *__s2 );
106 else if( __s2 < __s1 )
112 assign( *--__s1, *--__s2 );
118 static constexpr char_type*
copy( char_type* __s1,
const char_type* __s2,
size_t __n )
120 char_type* __r = __s1;
122 for( ; __n; --__n, ++__s1, ++__s2 )
123 assign( *__s1, *__s2 );
128 static char_type* assign( char_type* __s,
size_t __n, char_type __a )
130 char_type* __r = __s;
132 for( ; __n; --__n, ++__s )
138 static inline constexpr int_type not_eof( int_type __c )
noexcept
140 return eq_int_type( __c,
eof() ) ? ~eof() : __c;
143 static inline char_type to_char_type( int_type __c )
noexcept {
return char_type( __c ); }
145 static inline int_type to_int_type( char_type __c )
noexcept {
return static_cast<int_type
>( __c ); }
147 static inline constexpr bool eq_int_type( int_type __c1, int_type __c2 )
noexcept {
return __c1 == __c2; }
149 static inline constexpr int_type
eof() noexcept {
return static_cast<int_type
>( EOF ); }
155#include <nlohmann/json.hpp>
This is simply a "stub" meant to inform MSVC when compiling shared libraries that it can find templat...