diff --git a/src/Magnum/Math/Test/TypeTraitsTest.cpp b/src/Magnum/Math/Test/TypeTraitsTest.cpp index f12c40a3e..1ee4f0c21 100644 --- a/src/Magnum/Math/Test/TypeTraitsTest.cpp +++ b/src/Magnum/Math/Test/TypeTraitsTest.cpp @@ -165,8 +165,8 @@ void TypeTraitsTest::sizeOfLongDouble() { } void TypeTraitsTest::name() { - CORRADE_COMPARE(TypeTraits::name(), "UnsignedShort"); - CORRADE_COMPARE(TypeTraits::name(), "Float"); + CORRADE_COMPARE(TypeTraits::name(), std::string{"UnsignedShort"}); + CORRADE_COMPARE(TypeTraits::name(), std::string{"Float"}); } template void TypeTraitsTest::equalsIntegral() {