Skip to content

Commit

Permalink
Fix Clang-3.8 compilation of tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
horenmar committed Feb 13, 2020
1 parent b009d19 commit b2a6523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/SelfTest/IntrospectiveTests/String.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ TEST_CASE("StringRef at compilation time", "[Strings][StringRef][constexpr]") {
// * substr
using Catch::StringRef;
SECTION("Simple constructors") {
constexpr StringRef empty;
constexpr StringRef empty{};
STATIC_REQUIRE(empty.size() == 0);
STATIC_REQUIRE(empty.begin() == empty.end());

Expand Down

0 comments on commit b2a6523

Please sign in to comment.