Skip to content

Commit a9c9123

Browse files
committed
Ambiguous overload for basic_string (MSVC is fine with it of course, silly)
1 parent 16b50c3 commit a9c9123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Test/tests/TestPrimitives.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ int main()
77
object["test1"] = "Hello World";
88
object["test2"] = 123.0;
99

10-
if ((std::string)object["test1"] != "Hello World" || (double)object["test2"] != 123.0)
10+
if (static_cast<std::string>(object["test1"]) != "Hello World" || (double)object["test2"] != 123.0)
1111
{
1212
std::println("TestPrimitives failed");
1313
return 1;

0 commit comments

Comments
 (0)