$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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?