@@ -39,7 +39,7 @@ namespace std
39
39
return static_cast <unsigned char >(a) < static_cast <unsigned char >(b);
40
40
}
41
41
42
- static constexpr int compare (const char_type* s1, const char_type* s2, std::size_t n) noexcept
42
+ static int compare (const char_type* s1, const char_type* s2, std::size_t n) noexcept
43
43
{
44
44
if (n == 0 ) return 0 ;
45
45
return std::memcmp (s1, s2, n);
@@ -52,7 +52,7 @@ namespace std
52
52
return i;
53
53
}
54
54
55
- static constexpr const char_type* find (const char_type* s, std::size_t n, const char_type& a) noexcept
55
+ static const char_type* find (const char_type* s, std::size_t n, const char_type& a) noexcept
56
56
{
57
57
return static_cast <const char_type*>(std::memchr (s, static_cast <unsigned char >(a), n));
58
58
}
@@ -67,12 +67,12 @@ namespace std
67
67
return static_cast <char_type*>(std::memcpy (dest, src, n));
68
68
}
69
69
70
- static constexpr char_type* assign (char_type* dest, std::size_t n, char_type a) noexcept
70
+ static char_type* assign (char_type* dest, std::size_t n, char_type a) noexcept
71
71
{
72
72
return static_cast <char_type*>(std::memset (dest, static_cast <int >(a), n));
73
73
}
74
74
75
- static constexpr int_type to_int_type (char_type c) noexcept
75
+ static int_type to_int_type (char_type c) noexcept
76
76
{
77
77
return static_cast <unsigned char >(c);
78
78
}
0 commit comments