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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -