mirror of
https://github.com/boostorg/static_string.git
synced 2025-07-27 19:17:37 +02:00
Remove more warnings in tests
This commit is contained in:
@ -289,14 +289,14 @@ public:
|
||||
|
||||
BOOST_STATIC_STRING_CPP11_CONSTEXPR
|
||||
std::size_t
|
||||
set_size(std::size_t) noexcept
|
||||
set_size(std::size_t) const noexcept
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
BOOST_STATIC_STRING_CPP14_CONSTEXPR
|
||||
void
|
||||
term_impl() noexcept { }
|
||||
term_impl() const noexcept { }
|
||||
|
||||
private:
|
||||
static constexpr const value_type null_{};
|
||||
|
@ -54,6 +54,7 @@ testConstantEvaluation()
|
||||
//cstatic_string g(f.begin(), f.end());
|
||||
cstatic_string h(f);
|
||||
cstatic_string i({'a'});
|
||||
static_cast<void>((c, d, e, f, h, i));
|
||||
|
||||
// assignment
|
||||
a = b;
|
||||
@ -102,7 +103,8 @@ testConstantEvaluation()
|
||||
|
||||
// capacity and size
|
||||
cstatic_string().size();
|
||||
cstatic_string().empty();
|
||||
// this is potentially marked nodiscard
|
||||
static_cast<void>(cstatic_string().empty());
|
||||
cstatic_string().length();
|
||||
cstatic_string().max_size();
|
||||
cstatic_string().capacity();
|
||||
@ -228,6 +230,7 @@ testConstantEvaluation()
|
||||
//cstatic_string g(f.begin(), f.end());
|
||||
cstatic_string h(f);
|
||||
cstatic_string i({'a'});
|
||||
static_cast<void>((c, d, e, f, h, i));
|
||||
|
||||
// assignment
|
||||
a = b;
|
||||
@ -284,7 +287,8 @@ testConstantEvaluation()
|
||||
|
||||
// capacity and size
|
||||
cstatic_string().size();
|
||||
cstatic_string().empty();
|
||||
// this is potentially marked nodiscard
|
||||
static_cast<void>(cstatic_string().empty());
|
||||
cstatic_string().length();
|
||||
cstatic_string().max_size();
|
||||
cstatic_string().capacity();
|
||||
@ -410,6 +414,7 @@ testConstantEvaluation()
|
||||
//cstatic_string g(f.begin(), f.end());
|
||||
cstatic_string h(f);
|
||||
cstatic_string i({'a'});
|
||||
static_cast<void>((c, d, e, f, h, i));
|
||||
|
||||
// assignment
|
||||
a = b;
|
||||
@ -452,7 +457,8 @@ testConstantEvaluation()
|
||||
|
||||
// capacity and size
|
||||
cstatic_string().size();
|
||||
cstatic_string().empty();
|
||||
// this is potentially marked nodiscard
|
||||
static_cast<void>(cstatic_string().empty());
|
||||
cstatic_string().length();
|
||||
cstatic_string().max_size();
|
||||
cstatic_string().capacity();
|
||||
|
@ -7036,8 +7036,8 @@ testEmpty()
|
||||
{
|
||||
static_string<0> a;
|
||||
BOOST_TEST(a.size() == 0);
|
||||
BOOST_TEST(a.data());
|
||||
BOOST_TEST(!a.capacity());
|
||||
BOOST_TEST(a.data() != nullptr);
|
||||
BOOST_TEST(a.capacity() == 0);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user