Boost logo

Boost Users :

Subject: Re: [Boost-users] [Variant] recursive_wrapper and ambiguous convert_construct()
From: Florian Goujeon (florian.goujeon_at_[hidden])
Date: 2012-04-11 14:48:51


On 04/09/2012 08:23 PM, Jeffrey Lee Hellrung, Jr. wrote:

> c_fwd inherits from c, which is the variant<double,char*> that pops up above. So yeah, there's definitely an ambiguity there.
Since boost.variant seems confused by this public inheritance,
I'll try to write a wrapper instead:

class my_type
{
     private:
         boost::variant<...> impl_;

     public:
         //interface of impl_
};

It's too bad C++ doesn't ease such writtings.

> does that help you diagnose the problem in any way?
It does. Thank you, Jeff!


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