diff --git a/library/PolyVoxCore/include/PolyVoxCore/Impl/CompilerCapabilities.h.in b/library/PolyVoxCore/include/PolyVoxCore/Impl/CompilerCapabilities.h.in index 6876d1a7..8c1638c3 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Impl/CompilerCapabilities.h.in +++ b/library/PolyVoxCore/include/PolyVoxCore/Impl/CompilerCapabilities.h.in @@ -3,4 +3,6 @@ #cmakedefine HAS_CXX11_CONSTEXPR +#cmakedefine HAS_CXX11_STATIC_ASSERT + #endif diff --git a/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h b/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h index 20866217..e16b3b5a 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h @@ -77,9 +77,6 @@ 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 @@ -101,7 +98,6 @@ freely, subject to the following restrictions: #define polyvox_bind std::bind #define polyvox_placeholder_1 std::placeholders::_1 #define polyvox_placeholder_2 std::placeholders::_2 - //#define static_assert static_assert //we can use this #endif #if defined(HAS_CXX11_CONSTEXPR) @@ -112,4 +108,11 @@ freely, subject to the following restrictions: #define polyvox_constexpr #endif +#if defined(HAS_CXX11_STATIC_ASSERT) + //In this case we can just use static_assert +#else + #include + #define static_assert BOOST_STATIC_ASSERT +#endif + #endif