diff options
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r-- | cpp/src/Ice/Instance.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp index ae4a2a07a61..cd9feeca62b 100644 --- a/cpp/src/Ice/Instance.cpp +++ b/cpp/src/Ice/Instance.cpp @@ -1425,7 +1425,13 @@ IceInternal::Instance::finishSetup(int& argc, char* argv[], const Ice::Communica // if(propsAdmin) { +#ifdef ICE_CPP11_MAPPING + auto metricsAdmin = observer->getFacet(); + propsAdmin->addUpdateCallback( + [metricsAdmin](const PropertyDict& changes) { metricsAdmin->updated(changes); }); +#else propsAdmin->addUpdateCallback(observer->getFacet()); +#endif } } } |