mirror of
https://github.com/boostorg/static_string.git
synced 2025-07-27 11:07:43 +02:00
Remove trailing tokens after macro
This commit is contained in:
@ -114,8 +114,13 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (__cplusplus >= 201402L) && (__cplusplus < 201703L) && defined(BOOST_STATIC_STRING_NULL_OPTIMIZATION) && defined(__clang__) && ((__clang_major__ == 4) || (__clang_major__ == 5))
|
#if (__cplusplus >= 201402L) && \
|
||||||
|
(__cplusplus < 201703L) && \
|
||||||
|
defined(BOOST_STATIC_STRING_NULL_OPTIMIZATION) && \
|
||||||
|
defined(__clang__) && \
|
||||||
|
((__clang_major__ == 4) || (__clang_major__ == 5))
|
||||||
#error The null terminator optimization is not supported for clang 4.x and clang 5.x
|
#error The null terminator optimization is not supported for clang 4.x and clang 5.x
|
||||||
|
#undef BOOST_STATIC_STRING_NULL_OPTIMIZATION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
@ -6974,7 +6974,7 @@ constexpr bool testConstexpr()
|
|||||||
//constexpr auto h = s1.assign({'1'});
|
//constexpr auto h = s1.assign({'1'});
|
||||||
//constexpr auto i = s1.assign("", 1);
|
//constexpr auto i = s1.assign("", 1);
|
||||||
|
|
||||||
#else __cplusplus >= 201103L
|
#elif __cplusplus >= 201103L
|
||||||
// c++11 constexpr tests
|
// c++11 constexpr tests
|
||||||
/*basic_static_string<4, char, cxper_char_traits> a;
|
/*basic_static_string<4, char, cxper_char_traits> a;
|
||||||
auto b = a.size();
|
auto b = a.size();
|
||||||
|
Reference in New Issue
Block a user