]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] don't pass temporary object as a const& parameter.
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 23 May 2012 03:15:13 +0000 (20:15 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 23 May 2012 03:15:13 +0000 (20:15 -0700)
on macmini the compiler seems to apply the copy constructor and complain
about it.  that rather seems to be a compiler problem, but this small change
works around it.

committing it at my discretion.

src/lib/asiolink/tests/io_endpoint_unittest.cc

index 2170112d08fa2928d1747a80e24aba27184fdc07..462a2fbac111d9aa772a1c5c23a415918c685d50 100644 (file)
@@ -286,6 +286,9 @@ TEST(IOEndpointTest, LeftShiftOperator) {
 
     // Uncommon address family.  The actual behavior doesn't matter much
     // in practice, but we check such input doesn't make it crash.
-    checkEndpointText("2001:db8::bad:add:42", TestIOEndpoint());
+    // We explicitly instantiate the test EP because otherwise some compilers
+    // would be confused and complain.
+    TestIOEndpoint test_ep;
+    checkEndpointText("2001:db8::bad:add:42", test_ep);
 }
 }