Boost logo

Boost :

From: Sebastian Galkin (paraseba_at_[hidden])
Date: 2005-08-27 11:18:49


Maybe I'm missing something here :

> Brock Peabody wrote:
> void ETI_Map::build()
>
> {
>
> // add to these mappings as needed ...
>
> (*this)[typeid(short).name()] =
>
> TypeTranslation(typeid(short).name(), C_SHORT, SQL_INTEGER, SQL_C_SSHORT,
> TypeTranslation::TYPE_PRIMITIVE, sizeof(short));

but are you using typeid(short).name() as a map key ? I think the
standard doesn't guaranties uniqueness for the type_info::name.

--
Sebastian Galkin

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk