Status: Open
This line:
Has the 'const' keyword, making it so that const references are always passed to the class's constructor. But my class's constructor has one parameter that is a non-const reference. If I comment the const part it works. Maybe should edit the recipe?
This line:
#define NEW_PTR_PARAM_DECL(z, n, _) BOOST_PP_COMMA_IF(n) A ## n const & a ## nHas the 'const' keyword, making it so that const references are always passed to the class's constructor. But my class's constructor has one parameter that is a non-const reference. If I comment the const part it works. Maybe should edit the recipe?
I think you're probably right. Removing the const seems a perfectly reasonable thing to do. The reference should probably also be added using add_reference from Boost.TypeTraits, that will stop errors where variables that are already references are passed to the constructor.
I'll have a play with it when I get a chance, but do feel free to change the recipe yourself — it's as much yours as anybody else's.
This is not an official Boost site. For more information on Boost please see Boost.org.