From 78cdf9acd6448ea994c94498e00d7bc9c86e266e Mon Sep 17 00:00:00 2001 From: Daviw Williams Date: Wed, 5 Dec 2012 15:02:08 +0100 Subject: [PATCH] Fixed use of static_asserts with Boost. These weren't working because static_assert takes two parameters (condition and message) whereas BOOST_STATIC_ASSERT only takes a condition. --- library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h b/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h index 8feb34bd..1bbfa07b 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h @@ -77,7 +77,7 @@ freely, subject to the following restrictions: #define polyvox_placeholder_2 _2 #include - #define static_assert BOOST_STATIC_ASSERT + #define static_assert(condition, message) BOOST_STATIC_ASSERT(condition) //As long as we're requiring boost, we'll use it to compensate