19 Mar
2014
19 Mar
'14
2:32 a.m.
On 14/03/2014 19:22, Quoth feverzsj:
for common case:
boost::variant
var; var = val; Val& v = boost::get<Val>(var);
Why is that a common case? I would think that's an anti-pattern, personally. (But then I haven't played with variants much, so perhaps I'm missing something.)