Boost logo

Boost Users :

From: programmer blabla (programmer_blabla_at_[hidden])
Date: 2004-01-14 10:31:25

Dear Booster's

I have a problem compiling a tuple containing an enum in a namespace. For

namespace TestTuple
    enum ETestTuple
        eTestTuple0 = 0,
        eTestTuple1 = 1

void Testtuple5()
    typedef boost::tuple<TestTuple::ETestTuple> Tuple;
    Tuple tpl;

does not compile. I am using MSVC (7.1 version), just native code. Is
this a M$ problem or is tuple broken? Also I get problem with the combination
of boost::bind and tuple, for example:

int i;
boost::tuple<int> data;
i = data.get<0>(); //ok
i = boost::tuples::get<0>(data); //ok
i = boost::bind(&boost::tuples::get<0>, _1)(data); //error
Has anyone a clue? Btw searching is very hard, because google
is out of sync with the list.

With kind regards,

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at