diff options
author | Tim King <taking@cs.nyu.edu> | 2017-07-16 22:13:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-16 22:13:10 -0700 |
commit | 949e19cbc2881996e5c5eed613f4506264482039 (patch) | |
tree | b96131f9df0699fcd86826a1b970a101af550f37 /src/context/cdlist.h | |
parent | 28693db66c42bf48b9d748aba869d4fe149b6b44 (diff) |
Moving to static_assert now that c++11 is available.
Diffstat (limited to 'src/context/cdlist.h')
-rw-r--r-- | src/context/cdlist.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/context/cdlist.h b/src/context/cdlist.h index 7cee41b91..3dab675c3 100644 --- a/src/context/cdlist.h +++ b/src/context/cdlist.h @@ -20,7 +20,6 @@ #ifndef __CVC4__CONTEXT__CDLIST_H #define __CVC4__CONTEXT__CDLIST_H -#include <boost/static_assert.hpp> #include <iterator> #include <memory> #include <string> @@ -417,21 +416,21 @@ public: } };/* class CDList<> */ - template <class T, class CleanUp> -class CDList <T, CleanUp, ContextMemoryAllocator<T> > : public ContextObj { +class CDList<T, CleanUp, ContextMemoryAllocator<T> > : public ContextObj { /* CDList is incompatible for use with a ContextMemoryAllocator. * Consider using CDChunkList<T> instead. * * Explanation: - * If ContextMemoryAllocator is used and d_list grows at a deeper context level - * the reallocated will be reallocated in a context memory region that can be - * destroyed on pop. To support this, a full copy of d_list would have to be made. - * As this is unacceptable for performance in other situations, we do not do - * this. + * If ContextMemoryAllocator is used and d_list grows at a deeper context + * level the reallocated will be reallocated in a context memory region that + * can be destroyed on pop. To support this, a full copy of d_list would have + * to be made. As this is unacceptable for performance in other situations, we + * do not do this. */ - BOOST_STATIC_ASSERT(sizeof(T) == 0); + static_assert(sizeof(T) == 0, + "Cannot create a CDList with a ContextMemoryAllocator."); }; }/* CVC4::context namespace */ |