|
Boost : |
Subject: Re: [boost] Formal Review Request: TypeErasure
From: Nevin Liber (nevin_at_[hidden])
Date: 2012-06-07 19:05:10
On 7 June 2012 16:14, lcaminiti <lorcaminiti_at_[hidden]> wrote:
>
> What if this were possible? Would this be an acceptable way to add custom
> concepts?
>
> BOOST_TYPE_ERASURE_CONCEPT(
> concept (sable) ( class S )
> (
> void member_body(S, f) ( void ) ,
> void member_body(S, g) ( void ) ,
> void member_body(S, h) ( void )
> )
> )
>
It would certainly help a lot. If we want people to replace the common
idiom of creating AbstractS and storing the instantiated object in
unique_ptr<AbstractS> (or a different smart pointer), the replacement needs
to be almost as easy, at least for that very common case.
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk