
7 Jun
2012
7 Jun
'12
11:05 p.m.
On 7 June 2012 16:14, lcaminiti <lorcaminiti@gmail.com> 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@eviloverlord.com> (847) 691-1404