Boost logo

Boost Users :

Subject: Re: [Boost-users] [variant] Variant call forwarding?
From: Igor R (boost.lists_at_[hidden])
Date: 2010-02-23 12:18:16


> 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?


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