From 29c6fc7aa212171649492c97de7788600d90be82 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Fri, 2 Feb 2018 12:12:27 +0900 Subject: [PATCH] Added is_final intrinsic for msvc 2013 and later --- include/boost/type_traits/intrinsics.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/type_traits/intrinsics.hpp b/include/boost/type_traits/intrinsics.hpp index 7d97157..857215b 100644 --- a/include/boost/type_traits/intrinsics.hpp +++ b/include/boost/type_traits/intrinsics.hpp @@ -135,6 +135,9 @@ # define BOOST_IS_NOTHROW_MOVE_ASSIGN(T) (__is_nothrow_assignable(T&, T&&)) # define BOOST_IS_NOTHROW_MOVE_CONSTRUCT(T) (__is_nothrow_constructible(T, T&&)) #endif +#if _MSC_VER >= 1800 +# define BOOST_IS_FINAL(T) __is_final(T) +#endif # define BOOST_HAS_TYPE_TRAITS_INTRINSICS #endif