|
Boost : |
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2007-09-01 10:13:46
Marco Costalba wrote:
> You can view as HTML page a simple and commented test program here:
> http://digilander.libero.it/mcostalba/simple_factory/main.cpp.html
Your small document doesn't talk about ownership and lifetime management
of the created object.
As for the forwarding problem, this is solved using rvalue references.
However, since they're not available in C++03, people use pass-by-value
instead, and boost::ref when they want to pass by reference.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk