23 Feb
2010
23 Feb
'10
5:18 p.m.
I'm wondering what's the easiest way to enable call forwarding by a variant to contained function objects accepting the same arguments?
I.e.,
variant< F, G > m_funcs;
m_funcs = f; m_funcs( a, b, c );
m_funcs = g; m_funcs( a, b, c );
If both F & G have the same signature, what's the purpose of variant?