Boost logo

Boost Users :

Subject: [Boost-users] [variant] Variant call forwarding?
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-02-23 11:50:40


Hello,

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 );

Thanks,
Cheers,

Rutger


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net