Skip to content
Browse files

change BOOST_STATIC_ASSERT by BOOST_MPL_ASSERT where the last is better

  • Loading branch information...
1 parent 57b5227 commit 6fd7bbb7c2e54c50bfc5bfbd9485afde9a31dec2 @aplatanado committed Jul 5, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 include/cli/callbacks.hpp
View
5 include/cli/callbacks.hpp
@@ -24,9 +24,9 @@
#include <boost/function.hpp>
#include <boost/function_types/function_type.hpp>
+#include <boost/mpl/assert.hpp>
#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
-#include <boost/static_assert.hpp>
#include <boost/type_traits.hpp>
#include <cli/exceptions.hpp>
@@ -70,8 +70,7 @@
typedef typename CALLBACK<Type>::Type ExpectedSignature; \
typedef typename \
boost::function_types::function_type<FUNCTOR>::type Signature; \
- BOOST_STATIC_ASSERT(( \
- boost::is_same<ExpectedSignature, Signature>::value))
+ BOOST_MPL_ASSERT((boost::is_same<ExpectedSignature, Signature>))
namespace cli { namespace callback

0 comments on commit 6fd7bbb

Please sign in to comment.
Something went wrong with that request. Please try again.