mirror of
https://github.com/boostorg/static_string.git
synced 2025-07-27 11:07:43 +02:00
Make data_impl constexpr for zero-size strings
This commit is contained in:
@ -6971,6 +6971,10 @@ constexpr bool testConstexpr()
|
||||
constexpr auto h = s2.back();
|
||||
}
|
||||
|
||||
static_string<0> a;
|
||||
|
||||
constexpr auto b = a.data();
|
||||
|
||||
//constexpr auto g = s1.assign(1, '1');
|
||||
//constexpr auto h = s1.assign({'1'});
|
||||
//constexpr auto i = s1.assign("", 1);
|
||||
@ -7021,9 +7025,6 @@ runTests()
|
||||
|
||||
testHash();
|
||||
|
||||
static_string<1>() + static_string<3>();
|
||||
static_string<3>() + "ggggg";
|
||||
|
||||
return report_errors();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user