Fix test and standalone support

This commit is contained in:
Krystian Stasiowski
2019-12-16 18:19:01 -05:00
parent 41bb1a550d
commit 0f4d2db416
2 changed files with 21 additions and 18 deletions

View File

@ -16,6 +16,7 @@
namespace boost {
namespace static_string {
using string_view = basic_string_view<char, std::char_traits<char>>;
template <class S>
bool
@ -6933,7 +6934,6 @@ constexpr bool testConstexpr()
#elif __cplusplus >= 201402L
// c++14 constexpr tests
static_string<4> a;
using S = basic_static_string<16, char, cxper_char_traits>;
@ -6963,7 +6963,7 @@ constexpr bool testConstexpr()
#else __cplusplus >= 201103L
// c++11 constexpr tests
static_string<4> a;
static_string<4, char, cxper_char_traits> a;
auto b = a.size();
auto c = a.empty();
auto d = a.empty();
@ -7007,6 +7007,9 @@ runTests()
testHash();
static_string<1>() + static_string<3>();
static_string<3>() + "ggggg";
return report_errors();
}