Re: [Boost-bugs] [Boost C++ Libraries] #11276: Ability to hold already type erased object into a type erased reference.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11276: Ability to hold already type erased object into a type erased reference.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-05-08 16:35:48


#11276: Ability to hold already type erased object into a type erased reference.
-------------------------------+-----------------------------
  Reporter: germandiago | Owner: steven_watanabe
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: type_erasure
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-----------------------------

Comment (by steven_watanabe):

 Is there a good reason that you need to inherit from any instead of just
 using a typedef? Your example will work with any<C, _self> and any<C,
 _self&>. If you really need to create your own wrapper, then you need to
 define the extra constructor overloads needed to make it work.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11276#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:18 UTC