Skip to content

Commit

Permalink
Fixed constant_string_view test in C++14
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal committed Feb 6, 2024
1 parent 1810f40 commit 0643a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/test/constant_string_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ BOOST_AUTO_TEST_CASE(runtime_std_string_view)
// Constexpr-ness checks
#ifndef BOOST_NO_CXX14_CONSTEXPR
static constexpr string_view abcd_str("abcd", 4); // ctor from const char* is C++17 constexpr because traits
static_assert(constant_string_view(abcd_str).get() == abcd_str);
static_assert(!constant_string_view(abcd_str).get().empty(), "");
#endif

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 0643a8f

Please sign in to comment.