Commit cd6a1513 authored by JINMEI Tatuya's avatar JINMEI Tatuya

[master] don't pass temporary object as a const& parameter.

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.
parent d10df14d
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment