mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Fix Clang-3.8 compilation of tests
As far as I know, the compilation error is a compiler bug, but I do not want to just drop the support for something that is trivial to work around.
This commit is contained in:
parent
b009d190bf
commit
b2a6523d85
@ -130,7 +130,7 @@ TEST_CASE("StringRef at compilation time", "[Strings][StringRef][constexpr]") {
|
|||||||
// * substr
|
// * substr
|
||||||
using Catch::StringRef;
|
using Catch::StringRef;
|
||||||
SECTION("Simple constructors") {
|
SECTION("Simple constructors") {
|
||||||
constexpr StringRef empty;
|
constexpr StringRef empty{};
|
||||||
STATIC_REQUIRE(empty.size() == 0);
|
STATIC_REQUIRE(empty.size() == 0);
|
||||||
STATIC_REQUIRE(empty.begin() == empty.end());
|
STATIC_REQUIRE(empty.begin() == empty.end());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user