This project is read-only.
0

Resolved

Use Function:factory instead of new

description

boost::factory<T*>()(arg1,arg2,arg3)
// same as new T(arg1,arg2,arg3)
 
boost::value_factory<T>()(arg1,arg2,arg3)
// same as T(arg1,arg2,arg3)
 
http://www.boost.org/doc/libs/1_46_1/libs/functional/factory/doc/html/index.html

comments