From 1bc263807fcf8b738fcd95c1f623a9af88390704 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Sat, 25 Feb 2012 22:49:23 +0000 Subject: [PATCH] Add static_assert support Define static_assert to be equal to BOOST_STATIC_ASSERT on older MSVC compilers. --- library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h b/library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h index 10745e8c..d8ab9229 100644 --- a/library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h +++ b/library/PolyVoxCore/include/PolyVoxImpl/TypeDef.h @@ -76,6 +76,9 @@ freely, subject to the following restrictions: #define polyvox_bind boost::bind #define polyvox_placeholder_1 _1 #define polyvox_placeholder_2 _2 + + #include + #define static_assert BOOST_STATIC_ASSERT //As long as we're requiring boost, we'll use it to compensate @@ -98,6 +101,7 @@ freely, subject to the following restrictions: #define polyvox_placeholder_1 std::placeholders::_1 #define polyvox_placeholder_2 std::placeholders::_2 #define polyvox_hash std::hash + //#define static_assert static_assert //we can use this #endif #endif