
21 May
2008
21 May
'08
7:53 a.m.
Am Mittwoch 21 Mai 2008 08:42:34 schrieb Hansi:
Noah Roberts schrieb:
#include
#include <string> #include <iostream> template < typename T1, typename T2 > struct Test { typedef boost::tuple
tuple_t; tuple_t tup; enum Members { NAME, VALUE };
typename boost::tuples::element
::type name() { return tup.get<NAME>(); }
This code is almost correct :o) . Try the attached File.
this version doesn't work with my compiler (msvc8.0). I get the error:
error C2899:typename cannot be used outside a template declaration
But this would be the preferred version for me. Have you an idea how I can solve this?
Best, -- Maik