diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-07-13 19:25:57 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-07-13 19:25:57 +0000 |
| commit | 289ae9e3ac13cefd468cfb852e8b9f52e984de08 (patch) | |
| tree | bdee1fefb7c19e3c949b2eadeecc371c8fbce48b /include/string | |
| parent | 9d043122e0fc90510de06d43da8eda827464c1da (diff) | |
Notes
Diffstat (limited to 'include/string')
| -rw-r--r-- | include/string | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/string b/include/string index d1a3a1f8e6cc..010a4c7816ea 100644 --- a/include/string +++ b/include/string @@ -676,11 +676,11 @@ private: }; #if _LIBCPP_BIG_ENDIAN - enum {__short_mask = 0x01}; - enum {__long_mask = 0x1ul}; + static const size_type __short_mask = 0x01; + static const size_type __long_mask = 0x1ul; #else // _LIBCPP_BIG_ENDIAN - enum {__short_mask = 0x80}; - enum {__long_mask = ~(size_type(~0) >> 1)}; + static const size_type __short_mask = 0x80; + static const size_type __long_mask = ~(size_type(~0) >> 1); #endif // _LIBCPP_BIG_ENDIAN enum {__min_cap = (sizeof(__long) - 1)/sizeof(value_type) > 2 ? @@ -706,11 +706,11 @@ private: }; #if _LIBCPP_BIG_ENDIAN - enum {__short_mask = 0x80}; - enum {__long_mask = ~(size_type(~0) >> 1)}; + static const size_type __short_mask = 0x80; + static const size_type __long_mask = ~(size_type(~0) >> 1); #else // _LIBCPP_BIG_ENDIAN - enum {__short_mask = 0x01}; - enum {__long_mask = 0x1ul}; + static const size_type __short_mask = 0x01; + static const size_type __long_mask = 0x1ul; #endif // _LIBCPP_BIG_ENDIAN enum {__min_cap = (sizeof(__long) - 1)/sizeof(value_type) > 2 ? |
