
Toon Knapen wrote:
"enum npos_type { npose = -1 }"
(I assume 'npose' is a typo for 'npos') I'm unsure whether this would be the right thing to do here. If you define npos like above, it will result in a 32 bit value. When used together with 64 bit values (size_t), this is IMHO a potential source of bugs - although I don't have evidence. Have you considered/tried static const size_t npos = -1; or optionally (if npos_type is needed): typedef size_t npos_type; static const npos_type npos = -1; ? This should (AFAICS) provide the "correct" 64 bit value you are looking for. Regards, Daniel -- Daniel Frey aixigo AG - financial solutions & technology Schloß-Rahe-Straße 15, 52072 Aachen, Germany fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99 eMail: daniel.frey@aixigo.de, web: http://www.aixigo.de