Boost logo

Boost Users :

From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2008-05-21 16:16:42


Hansi wrote:
> Hello,
>
> Thank you for your helped.
> You was right. I have tested your code inside mine. For that I have
> adapted something and the problem (I have posted it in another answer).
> The problem ist that I had the follwing struct:
>
> struct Test
> {
> typedef boost::tuple<int,char> tuple_t;
> tuple_t tup;
> enum Members { NAME, VALUE };
>
> typename boost::tuples::element<NAME, tuple_t>::type
> name()
> { return boost::get<NAME>(tup); }
> };
>
> and here the declaration doesn't work.

loose the typename. I read what others stated about its appropriateness
and I don't know if that is true or not. What I do know is that the
compiler we both use won't accept it.

If you remove typename it should work.


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