When I do this:
std::vector hello;
Everything works great. However, when I make it a vector of references instead:
boost::ptr_vector will work.
Edit: was a suggestion to use std::vector< boost::ref >, which will not work because you can't default-construct a boost::ref.
std::vector< boost::ref >
boost::ref