diff options
Diffstat (limited to 'cpp/include/Ice/MetricsAdminI.h')
-rw-r--r-- | cpp/include/Ice/MetricsAdminI.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/include/Ice/MetricsAdminI.h b/cpp/include/Ice/MetricsAdminI.h index 46beb043200..cad066d3670 100644 --- a/cpp/include/Ice/MetricsAdminI.h +++ b/cpp/include/Ice/MetricsAdminI.h @@ -325,7 +325,14 @@ public: } } - MetricsMapT(const MetricsMapT& other) : MetricsMapI(other), _destroyed(false) + MetricsMapT(const MetricsMapT& other) + : +#ifndef ICE_CPP11_MAPPING + IceUtil::Shared(), +#endif + MetricsMapI(other), + IceUtil::Mutex(), + _destroyed(false) { } |