From de505fbf507f15c83cd5df140b37360b5644caf7 Mon Sep 17 00:00:00 2001 From: Michal Bukovsky Date: Fri, 11 Mar 2016 06:53:08 +0100 Subject: [PATCH] atomic_update only for c++11 --- include/mcache/client.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mcache/client.h b/include/mcache/client.h index 6dcfb24..6116d3c 100644 --- a/include/mcache/client.h +++ b/include/mcache/client.h @@ -312,6 +312,7 @@ template < } } +#if __cplusplus >= 201103L /** Apply functor to variable in memcache * @param key key for data * @param callback transformation functor @@ -343,6 +344,7 @@ template < } throw error_t(err::unable_cas, "max iterations reached"); } +#endif /* __cplusplus */ /** Call 'get' command on appropriate memcache server. * @param key key for data.