Skip to content

Commit f8aa052

Browse files
committed
CXX-253 Include-what-you-use for make_shared
Older boost doesn't include make_shared.hpp in smart_ptr.hpp, so the include of smart_ptr.hpp in pch.h doesn't make make_shared.hpp available in the replica_set_monitor files.
1 parent 8e4a51c commit f8aa052

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/mongo/client/replica_set_monitor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "mongo/client/replica_set_monitor.h"
1717

1818
#include <algorithm>
19+
#include <boost/make_shared.hpp>
1920
#include <boost/thread.hpp>
2021
#include <limits>
2122

src/mongo/client/replica_set_monitor_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* limitations under the License.
1414
*/
1515

16+
#include <boost/make_shared.hpp>
17+
1618
#include "mongo/client/connpool.h"
1719
#include "mongo/client/dbclientinterface.h"
1820
#include "mongo/client/dbclient_rs.h"

0 commit comments

Comments
 (0)