Re: [Boost-bugs] [Boost C++ Libraries] #5811: indirected range adaptor not satisfied with unary dereference operator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5811: indirected range adaptor not satisfied with unary dereference operator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-30 15:35:42


#5811: indirected range adaptor not satisfied with unary dereference operator
----------------------------------------+-----------------------------------
  Reporter: Lars Viklund <zao@…> | Owner: neilgroves
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: range
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: optional element_type range adaptor indirected
----------------------------------------+-----------------------------------

Comment (by Lars Viklund <zao@…>):

 This was apparently known back in May in a
 [http://stackoverflow.com/questions/6123327/use-boostoptional-together-
 with-boostadaptorsindirected question on Stack Overflow], which also
 mentions a workaround for Boost.Optional. It doesn't address the
 underlying doc bug though, so the ticket is still valid.

 {{{
 #include <boost/optional/optional_fwd.hpp>
 #include <boost/pointee.hpp>

 namespace boost
 {
     template<typename P>
     struct pointee<optional<P> >
     {
         typedef typename optional<P>::value_type type;
     };
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5811#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC