[In_Place_Factory] Typo

12 Sep
2008
12 Sep
'08
10:39 a.m.
Hi, I found a typo: Here: http://www.boost.org/doc/libs/1_36_0/libs/utility/in_place_factories.html Chapter: Framework In the First example: struct C { template<class InPlaceFactory> C ( InPlaceFactory const& aFactoty ) //<----------Here! should be "aFactory" : contained_ ( uninitialized_storage() ) { aFactory.template apply<X>(contained_); } ~C() { contained_ -> X::~X(); delete[] contained_ ; } char* uninitialized_storage() { return new char[sizeof(X)] ; } char* contained_ ; } ; void foo() { C c( in_place(123,"hello") ) ; } Greetings Manuel
6131
Age (days ago)
6131
Last active (days ago)
0 comments
1 participants
participants (1)
-
Manuel Jung