
20 May
2014
20 May
'14
4:02 p.m.
template<TypeIn, TypeOut> void boost::large_vector_converter operator() (const TypeIn& in, boost:: optional <TypeOut>& out) { try { out = large_vector< TypeIn >(in); } catch() { out = boost::none; } } }
This would be more correct: struct large_vector_converter { template<typename T> void operator()(const T& in, boost::optional<large_vector<T> >& out) const { try { out = boost::in_place(in); } catch (...) {} } };