summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-03 13:08:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-03 13:08:01 +0000
commitaf4eaae274a46bcc490b40e4e1be1bf4a4df360a (patch)
tree042573e7142fe41053fa10fc6991ebe20b9c1e58
parentTidy up install targets (diff)
downloadicetray-af4eaae274a46bcc490b40e4e1be1bf4a4df360a.tar.bz2
icetray-af4eaae274a46bcc490b40e4e1be1bf4a4df360a.tar.xz
icetray-af4eaae274a46bcc490b40e4e1be1bf4a4df360a.zip
Remove boost::any in favour of std::any
-rw-r--r--icetray/icetray/abstractCachingDatabaseClient.h8
1 files 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 <cache.h>
-#include <boost/any.hpp>
-#include <boost/shared_ptr.hpp>
+#include <any>
+#include <memory>
namespace IceTray {
class DLL_PUBLIC AbstractCachingDatabaseClient : public AbstractDatabaseClient {
private:
typedef std::vector<std::size_t> 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<Domain>(*cached);
+ return std::any_cast<Domain>(*cached);
}
auto d(fetch<Domain, Params...>(sql, params...));
cache.add(key, CacheItem(d), time(NULL) + cacheTime);