We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c9123 commit 2d8b358Copy full SHA for 2d8b358
Test/tests/TestPrimitives.cpp
@@ -7,7 +7,7 @@ int main()
7
object["test1"] = "Hello World";
8
object["test2"] = 123.0;
9
10
- if (static_cast<std::string>(object["test1"]) != "Hello World" || (double)object["test2"] != 123.0)
+ if (static_cast<const std::string&>(object["test1"]) != "Hello World" || (double)object["test2"] != 123.0)
11
{
12
std::println("TestPrimitives failed");
13
return 1;
0 commit comments