summaryrefslogtreecommitdiff
path: root/src/mongo/client/sdam/topology_state_machine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/sdam/topology_state_machine.cpp')
-rw-r--r--src/mongo/client/sdam/topology_state_machine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/sdam/topology_state_machine.cpp b/src/mongo/client/sdam/topology_state_machine.cpp
index 6cdff657f82..237ae887635 100644
--- a/src/mongo/client/sdam/topology_state_machine.cpp
+++ b/src/mongo/client/sdam/topology_state_machine.cpp
@@ -61,7 +61,7 @@ inline int idx(T enumType) {
*/
void mongo::sdam::TopologyStateMachine::initTransitionTable() {
auto bindThis = [&](auto&& pmf) {
- return [=](auto&&... a) {
+ return [=, this](auto&&... a) {
(this->*pmf)(a...);
};
};