From 9a5e68bb5f2e728942194b36e0f4064ef07908d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Neun=C3=BCller?= Date: Sat, 17 Aug 2013 10:38:06 +0200 Subject: [PATCH] Fix condition for LUABIND_USE_NOEXPECT (#7, #11, #15). --- luabind/config.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luabind/config.hpp b/luabind/config.hpp index d1cadf60..d795ca91 100644 --- a/luabind/config.hpp +++ b/luabind/config.hpp @@ -127,7 +127,9 @@ // If you use Boost <= 1.46 but your compiler is C++11 compliant and marks // destructors as noexcept by default, you need to define LUABIND_USE_NOEXCEPT. -#if !defined(BOOST_NO_NOEXCEPT) && !defined(BOOST_NO_CXX11_NOEXCEPT) +#if ( !defined(BOOST_NO_NOEXCEPT) \ + && !defined(BOOST_NO_CXX11_NOEXCEPT) \ + && BOOST_VERSION >= 104700) # define LUABIND_USE_NOEXCEPT #endif #ifndef LUABIND_MAY_THROW