I am a little worried that the type of code which caused the original problem is lurking in other libstdc++-v3 files. Also, is there something wrong with traits_type::eq_int_type? David