
18 Jun
2007
18 Jun
'07
11:02 a.m.
Mathias Gaunard 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?
Yes, it's in_place.
Well, that's not quite the same: The in_place stuff deals with in-place construction (hence the name), which is a different pair of shoes. It's not applicable to the use cases outlined in my previous post, since it doesn't (and probably wouldn't make sense to) provide a function object interface (since it has to know the memory location where the object should be constructed). Regards, Tobias