|
Boost Users : |
From: Marc VIALA (mviala_at_[hidden])
Date: 2006-02-07 14:32:52
Hi Stuart,
Thank you for your CV7.1 workaround. Once again a mystery of VC7.1...
Best regards,
Marc Viala
"Stuart Dootson" <stuart.dootson_at_[hidden]> a écrit dans le message
news:<8b56cad40602070003m1432d360td4d3d32066a7f2e9_at_[hidden]>...
> On 2/6/06, Marc Viala <mviala_at_[hidden]> wrote:
> >
> > Hi,
> >
> > I've just tried to define a boost::tuples::tuple with an enum in a
> > namespace, see code hereafter:
> >
> > \code
> >
> > namespace adv { namespace rbt {
> > enum MyType {
> > Type_1, Type_2
> > } ;
> > } }
> >
> > boost::tuples::tuple<size_t, adv::rbt::MyType> t ;
> >
> > \endcode
> >
> > But during the compilation step, I've got an error w/ BOOST 1.33.1 and
VC7.1
> > like that: "error MyType not defined".
> >
> > Remark: If the enum is not defined in a namespace, there are no
compilation
> > errors.
> >
> > Is there any workaround to deals with this compilation error?
> >
> > Thanks in advance
> >
> > Marc Viala
> >
> > mailto:mviala_at_[hidden]
>
> 1. Move to VC8 :-) Your code compiles fine with VC8
>
> 2. Putting 'using adv::rbt::MyType;' immediately before the tuple
> typedef gets it to compile on VC7.1. I don't know why, though :-(
>
> Stuart Dootson
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