Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-07-21 08:12:23

----- Original Message -----
From: <jbandela_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, July 20, 2001 10:54 PM
Subject: [boost] Re: Compile-time associative container

> Forgive me if I am being too naive. Provided you did not have to be
> able to iterate over all associations, wouldn't template
> specialization fill your needs.
> template<class T> struct MyMap{};
> template<> struct MyMap<Type1>{
> typedef Type1 type;
> typedef Value1 value;
> };
> Regards,
> John R. Bandela

That's a Map: Type => Type
I need a Map: Type => (Type, Value)

Anyway, I ended up writing something using compressed_pair and the
implementation details of the tuple library from the vault. It seems to


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