Is it possible to initialise a member fusion vector to a value specified in a derived class without making the base class a template class?
like this:
class container
{
const auto children;
container (auto children):children (children){}
}
class derived : public container
{
derived():container(make_vector(string("test1"),string("test"))){} // http://www.boost.org/doc/libs/1_57_0/libs/fusion/doc/html/fusion/container/generation/functions/make_vector.html
}
I know that will not work- but I hope it will make it easier to understand my goal.
- delaying the specification of the types the vector will contain until a class derives from it.
- Without specifying the types the vector should contain by making the base class a template class
If not- what is closest thing to it?