<div class="gmail_quote">On Wed, Apr 11, 2012 at 11:48 AM, Florian Goujeon <span dir="ltr">&lt;<a href="mailto:florian.goujeon@42ndart.org">florian.goujeon@42ndart.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/09/2012 08:23 PM, Jeffrey Lee Hellrung, Jr. wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
c_fwd inherits from c, which is the variant&lt;double,char*&gt;  that pops up above. So yeah, there&#39;s definitely an ambiguity there.<br>
</blockquote>
Since boost.variant seems confused by this public inheritance,<br>
I&#39;ll try to write a wrapper instead:<br>
<br>
class my_type<br>
{<br>
    private:<br>
        boost::variant&lt;...&gt;  impl_;<br>
<br>
    public:<br>
        //interface of impl_<br>
};<br>
<br>
It&#39;s too bad C++ doesn&#39;t ease such writtings.<br></blockquote><div><br>Well, it kinda does: inheritance; but it doesn&#39;t let you disable the derived -&gt; base conversion :/<br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
does that help you diagnose the problem in any way?<br>

It does. Thank you, Jeff!<br></blockquote><div><br>Hmmm, okay, that&#39;s good &#39;cause I&#39;ve since forgotten the problem :)<br><br>If you think some SFINAE trick can be used to disambiguate the constructor call, consider filing a trac ticket for Boost.Variant with this example. Or, if possible, an even simpler example, &#39;cause I remember finding even this stripped-down example hard to wrap my head around :/ And if you can provide a solution, even better! Again, I&#39;ve since forgotten the problem, but I do remember that it wasn&#39;t immediately obvious to me whether this was a problem Boost.Variant should be able to handle or not.<br>
<br>- Jeff<br><br></div></div>

