Expose the "types" typedef of boost::optional_detail::operator_base as

public, rather than protected, since Spirit pokes at this typedef. 


[SVN r61832]
This commit is contained in:
Douglas Gregor
2010-05-06 21:44:18 +00:00
parent a63dbe0f14
commit 16f0a0aaaf

View File

@ -173,8 +173,10 @@ class optional_base : public optional_tag
typedef BOOST_DEDUCED_TYPENAME is_reference<T>::type is_reference_predicate ;
public:
typedef BOOST_DEDUCED_TYPENAME mpl::if_<is_reference_predicate,types_when_ref,types_when_not_ref>::type types ;
protected:
typedef bool (this_type::*unspecified_bool_type)() const;
typedef BOOST_DEDUCED_TYPENAME types::reference_type reference_type ;