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:
Martin Hořeňovský 2020-02-13 16:57:33 +01:00
parent b009d190bf
commit b2a6523d85
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -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());