Boost.Factory argument by reference
26 Mar
2012
26 Mar
'12
3:36 p.m.
Hello all, does anyone know if Boost.Factory can be tweaked to use const& instead of references, e.g.: struct Bla { Bla(int n){} }; void Foo() { boost::factory<Bla*> fac; int i = 1; boost::scoped_ptr<KTestBase> ptr2(fac(i)); boost::scoped_ptr<KTestBase> ptr2(fac(2)); //compile error }
4561
Age (days ago)
4561
Last active (days ago)
0 comments
1 participants
participants (1)
-
gast128