Skip to content

Commit 2d8b358

Browse files
committed
uh more ambiguous (probably due to const-T-ref overload resolution)
1 parent a9c9123 commit 2d8b358

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 (static_cast<std::string>(object["test1"]) != "Hello World" || (double)object["test2"] != 123.0)
10+
if (static_cast<const 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)