From af4eaae274a46bcc490b40e4e1be1bf4a4df360a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 3 Feb 2019 13:08:01 +0000 Subject: Remove boost::any in favour of std::any --- icetray/icetray/abstractCachingDatabaseClient.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/icetray/icetray/abstractCachingDatabaseClient.h b/icetray/icetray/abstractCachingDatabaseClient.h index 49718ff..d20a980 100644 --- a/icetray/icetray/abstractCachingDatabaseClient.h +++ b/icetray/icetray/abstractCachingDatabaseClient.h @@ -3,14 +3,14 @@ #include "abstractDatabaseClient.h" #include -#include -#include +#include +#include namespace IceTray { class DLL_PUBLIC AbstractCachingDatabaseClient : public AbstractDatabaseClient { private: typedef std::vector CacheKey; - typedef boost::any CacheItem; + typedef std::any CacheItem; protected: AbstractCachingDatabaseClient(const DB::ConnectionPoolPtr & d); @@ -26,7 +26,7 @@ namespace IceTray { key.push_back(typeid(Domain).hash_code()); keyPushParams(key, params...); if (auto cached = cache.get(key)) { - return boost::any_cast(*cached); + return std::any_cast(*cached); } auto d(fetch(sql, params...)); cache.add(key, CacheItem(d), time(NULL) + cacheTime); -- cgit v1.2.3