Skip to content

Commit

Permalink
Fix build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Sep 26, 2024
1 parent 22d802b commit ac94543
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions cpp/include/Ice/Proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "ReferenceF.h"
#include "RequestHandlerF.h"

#include <chrono>
#include <future>
#include <iosfwd>
#include <optional>
Expand Down
2 changes: 2 additions & 0 deletions cpp/src/Ice/DefaultsAndOverrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "Ice/PropertiesF.h"
#include "Network.h"

#include <chrono>

namespace IceInternal
{
class DefaultsAndOverrides
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/Ice/Proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit ac94543

Please sign in to comment.