From 161540a0eb7d9373750bf28fa4c652d2354f2f6d Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Thu, 11 Sep 2003 21:56:07 +0000 Subject: [PATCH] Fixed access bug in type helpers [SVN r20029] --- include/boost/optional.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/optional.hpp b/include/boost/optional.hpp index 86e623c..1c7d8f3 100644 --- a/include/boost/optional.hpp +++ b/include/boost/optional.hpp @@ -77,7 +77,7 @@ class aligned_storage } ; template -class types_when_isnt_ref +struct types_when_isnt_ref { typedef T const& reference_const_type ; typedef T & reference_type ; @@ -86,7 +86,7 @@ class types_when_isnt_ref typedef T const& argument_type ; } ; template -class types_when_is_ref +struct types_when_is_ref { typedef BOOST_DEDUCED_TYPENAME remove_reference::type raw_type ; @@ -117,9 +117,9 @@ class optional_base typedef mpl::false_ is_not_reference_tag ; typedef BOOST_DEDUCED_TYPENAME is_reference::type is_reference_predicate ; - + typedef BOOST_DEDUCED_TYPENAME mpl::if_::type types ; - + typedef bool (this_type::*unspecified_bool_type)() const; typedef BOOST_DEDUCED_TYPENAME types::reference_type reference_type ;