From 05a56f08e3b14fc0a63e308b0bb5d2a884766532 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 5 Nov 2017 20:27:37 +0200 Subject: [PATCH] Fix nullary member function case --- include/boost/bind/bind.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/bind/bind.hpp b/include/boost/bind/bind.hpp index 8ee8c28..1ccbc73 100644 --- a/include/boost/bind/bind.hpp +++ b/include/boost/bind/bind.hpp @@ -2292,6 +2292,15 @@ template< class R, class T > struct add_cref< R (T::*) () const, 1 > typedef void type; }; +#ifdef __cpp_noexcept_function_type + +template< class R, class T > struct add_cref< R (T::*) () const noexcept, 1 > +{ + typedef void type; +}; + +#endif // __cpp_noexcept_function_type + #endif // __IBMCPP__ template struct isref