فهرست منبع

Compile fix for boost <= 1.37

Frank Zago 16 سال پیش
والد
کامیت
0d7f92b290
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      client/SDL_Extensions.h

+ 3 - 0
client/SDL_Extensions.h

@@ -6,6 +6,7 @@
 #include "../int3.h"
 #include <vector>
 #include <sstream>
+#include <boost/version.hpp>
 #include <boost/type_traits/is_integral.hpp>
 
 /*
@@ -31,7 +32,9 @@ bool isItIn(const SDL_Rect * rect, int x, int y);
 template<typename IntType>
 std::string makeNumberShort(IntType number) //the output is a string containing at most 5 characters [4 if positive] (eg. intead 10000 it gives 10k)
 {
+#if BOOST_VERSION >= 103800
 	BOOST_MPL_ASSERT_MSG( boost::is_integral<IntType>::value, NON_INTEGRAL_TYPES_ARE_NOT_ALLOWED, (IntType) ); //it should make noise if IntType is not integral type
+#endif
 
 	int initialLength;
 	bool negative = (number < 0);