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-09 00:29:28
#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 anonymous):
Replying to [comment:1 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.
The ability to forward declare my types is important. With typedef and
using this is not possible.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11276#comment:2> 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