« Return to Thread: boost::factory?

Re: [lambda] Re: boost::factory?

by Eric Niebler :: Rate this Message:

Reply to Author | View in Thread


Tobias Schwinger wrote:

> Marcus Lindblom wrote:
>> Tobias Schwinger wrote:
>>> Dear Boost community,
>>>
>>> do we have a function object template to wrap arbitrary constructor
>>> calls / operator new expressions somewhere in Boost, already?
>>>  
>> lambda::new_ptr ?
>
> Yep, 'new_ptr' and 'constructor' are almost exactly what I want.
>
> Those templates are missing a 'result_type' typedef to become usable as
> "stand-alone function objects" (outside of Boost.Lambda expressions).
>
> Further, the limits are a bit too low for constructing Fusion Sequences
> and having them configurable would be nice to have, too...

Yes and IMO these things should be called new_ and construct.

--
Eric Niebler
Boost Consulting
www.boost-consulting.com
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: boost::factory?