From e15d6b1cd9813db0002887d42583258da31b06d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 17 Feb 2009 17:03:10 +0000 Subject: [PATCH] Ticket #2755: compile error in boost_intrusive 1.38.0: a set of classes with protected destructor [SVN r51290] --- include/boost/intrusive/detail/mpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/intrusive/detail/mpl.hpp b/include/boost/intrusive/detail/mpl.hpp index 15954b9..20f50da 100644 --- a/include/boost/intrusive/detail/mpl.hpp +++ b/include/boost/intrusive/detail/mpl.hpp @@ -64,7 +64,7 @@ class is_convertible class false_t { char dummy[2]; }; static true_t dispatch(U); static false_t dispatch(...); - static T trigger(); + static const T &trigger(); public: static const bool value = sizeof(dispatch(trigger())) == sizeof(true_t); };