MongoDB failed to buid due to error C2512: 'boost::unordered::unordered_set<mongo::LogicalSessionId,mongo::LogicalSessionId::Hash,std::equal_to<T>,std::allocator<T>>': no appropriate default constructor available. This issue is caused by revision 4c3337ahttps://github.com/mongodb/mongo/commit/4c3337abe512a37c8e4cb22e16eafcd04bc5bd3a Could you pleaes help to take a look at this? Thanks in advance!
Some investigate on my side:
The related code in logical_seesion_cache_test.cpp
stdx::promise<int> hitRefresh;
auto refreshFuture = hitRefresh.get_future();
// Advance time to first refresh point, check that refresh happens, and
// that it includes both our records
sessions()->setRefreshHook([&hitRefresh](LogicalSessionIdSet sessions) -> LogicalSessionIdSet {
hitRefresh.set_value(sessions.size());
return {};
});
If we change the code as below. There is no error reported.
stdx::promise<int> hitRefresh;*
to
stdx::promise<LogicalSessionId> hitRefresh;*