Mongo fails to compile with Boost 1.66.
This change needs to be done:
diff --git a/src/mongo/executor/network_interface_mock_test.cpp b/src/mongo/executor/network_interface_mock_test.cpp index b1a2e4edff..c41aad1f8c 100644 --- a/src/mongo/executor/network_interface_mock_test.cpp +++ b/src/mongo/executor/network_interface_mock_test.cpp @@ -143,7 +143,7 @@ TEST_F(NetworkInterfaceMockTest, ConnectionHook) { [&](const HostAndPort& remoteHost) { makeRequestCalled = true; hostCorrectForRequest = (remoteHost == testHost()); - return boost::make_optional<RemoteCommandRequest>(expectedRequest); + return boost::make_optional(expectedRequest); }, [&](const HostAndPort& remoteHost, RemoteCommandResponse&& response) { handleReplyCalled = true;
Related to https://jira.mongodb.org/browse/SERVER-32516
- related to
-
SERVER-32516 Fails to compile with Boost 1.66
- Closed