From ac9454371f746046c02e43df5500da06d8b398ab Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 26 Sep 2024 16:05:28 +0200 Subject: [PATCH] Fix build failures --- cpp/include/Ice/Proxy.h | 1 + cpp/src/Ice/DefaultsAndOverrides.h | 2 ++ cpp/src/Ice/Proxy.cpp | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cpp/include/Ice/Proxy.h b/cpp/include/Ice/Proxy.h index 11c906ee5ea..0ded6e18b66 100644 --- a/cpp/include/Ice/Proxy.h +++ b/cpp/include/Ice/Proxy.h @@ -15,6 +15,7 @@ #include "ReferenceF.h" #include "RequestHandlerF.h" +#include #include #include #include diff --git a/cpp/src/Ice/DefaultsAndOverrides.h b/cpp/src/Ice/DefaultsAndOverrides.h index 2d30d2f3e42..ae11e6ce976 100644 --- a/cpp/src/Ice/DefaultsAndOverrides.h +++ b/cpp/src/Ice/DefaultsAndOverrides.h @@ -13,6 +13,8 @@ #include "Ice/PropertiesF.h" #include "Network.h" +#include + namespace IceInternal { class DefaultsAndOverrides diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index 31a4907a21b..d3474808ed2 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -481,7 +481,7 @@ Ice::ObjectPrx::_invocationTimeout(chrono::milliseconds newTimeout) const if (newTimeout < 1ms && newTimeout != -1ms) { ostringstream s; - s << "invalid value passed to ice_invocationTimeout: " << newTimeout; + s << "invalid value passed to ice_invocationTimeout: " << newTimeout.count(); throw invalid_argument(s.str()); } if (newTimeout == _reference->getInvocationTimeout()) @@ -514,7 +514,7 @@ Ice::ObjectPrx::_locatorCacheTimeout(chrono::seconds newTimeout) const if (newTimeout < -1s) { ostringstream s; - s << "invalid value passed to ice_locatorCacheTimeout: " << newTimeout; + s << "invalid value passed to ice_locatorCacheTimeout: " << newTimeout.count(); throw invalid_argument(s.str()); } if (newTimeout == _reference->getLocatorCacheTimeout())