c++ - How to push back value to fusion vector during runtime? -
how push value fusion vector during runtime?
typedef boost::fusion::vector<a*, b*, c*> vec_t; vec_t vec_; vec_.push_back(new a());
the sequence operations done on fusion::vector
compile-time-only. once type has been computed @ compile time, fusion::vector
becomes no more tuple.
if want run-time mutable vector should use std::vector
.
Comments
Post a Comment