|
Boost : |
From: Howard Hinnant (hinnant_at_[hidden])
Date: 2003-08-30 09:08:52
On Friday, August 29, 2003, at 11:58 PM, Eric Friedman wrote:
> I've recently added reference support to variant. For instance, the
> following is now supported:
>
> Unfortunately, the addition of this constructor seems to have broken
> variant
> under Metrowerks in some situations. So far, I have discovered that
> embedded
> variants cause a problem when implicit conversions to these embedded
> variants occur. If the preceding description is unclear, the attached
> file
> demonstrates the problem in code.
>
> The attached code compiles and runs successfully on MSVC 6.5, MSVC
> 7.1, gcc
> 3.2, and Borland 5.5.1, but I cannot get it to compile under
> CodeWarrior
> 8.3. The compiler complains about "ambiguous access to overloaded
> function."
>
> My first instinct is to disable reference support for CodeWarrior (as
> #defining BOOST_VARIANT_NO_REFERENCE_SUPPORT does solve the problem),
> but
> CodeWarrior is generally a quite conformant compiler. I therefore hope
> someone might find a workaround.
If you will mail me a complete condensed demo, I'll take a look. I
downloaded boost 1.30.2 but was unable to find boost/variant.
-Howard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk