
20 May
2014
20 May
'14
4:02 p.m.
template
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