Boost logo

Boost :

From: Pavel Chikulaev (pavel.chikulaev_at_[hidden])
Date: 2005-06-27 06:12:08

Hi all,

Is there any interest in tagged tuple as extension of tuples library or fusion
The example:

struct name_t {}; //tagged types
struct year_t {};

void foo()
     tagged_tuple<std::string, name_t, int, year_t> s;

     s.get<name_t>() = "Hello World"!;
     s.get<year_t>() = 2005;
     assert(s.get<0>() == s.get<name_t>());
     assert(s.get<1>() == s.get<year_t>());

It already works in VC7.1 and VC8.0 :)

What do you think?

Pavel Chikulaev 

Boost list run by bdawes at, gregod at, cpdaniel at, john at