I've got a local variable inside a function:
vector<extend_t> newExtends( extend_alloc_t( alloc ) );
Unfortunately it gets recognized as a function definition. How do I prevent that ?
I've got a local variable inside a function:
vector<extend_t> newExtends( extend_alloc_t( alloc ) );
Unfortunately it gets recognized as a function definition. How do I prevent that ?
Simple solution: Use copy-initialization with
=instead, as in:[Note that actual copying should be elided]