Boost logo

Boost Users :

From: gast128 (gast128_at_[hidden])
Date: 2007-07-11 04:22:54


Dear all,

we upgraded yesterday to boost 1.34 but now ran in a weird compile error on
vstudio 2003 (sp1) when using boost properties (or indirect through use of
graph) and an enumerate enlosed by a namespace. E.g.:

namespace Bla
{
    struct Dummy
    {};

    enum Foo
    {
        eFoo
    };
}

void Example3()
{
   boost::property<int, Bla::Dummy> prop1; //ok
   boost::property<int, Bla::Foo> prop2; //error
}

It gives something like:
error C2065: 'Foo' : undeclared identifier.

It chokes on the line:

template <class Tag, class T, class Base = no_property>
  struct property : public Base {
   ...
#if BOOST_WORKAROUND (__GNUC__, < 3)
    property() { }
#else
    property() : m_value() { } <----
#endif

Anyone an idea?

Wkr,
me


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