Boost logo

Boost :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2004-05-25 05:32:49


Gennadiy Rozental ha escrito:

> Ok. Done.

Thanx!

>
>
> Gennadiy.
>
> P.S. BTW could anybody give some hint on "very short" error message by Intel
> compiler here:
> http://tinyurl.com/2c2zy
>

The problem seems to lie in that basic_cstring<>::npos is an unnamed
enum, and ICC does not like it to be passed as a template arg (I don't
actually know if this is a conformant diagnostic.) Anyway, the problem
goes away (confirmed in ICC 7.1) with the folowing patch in
basic_cstring.hpp:

58c58
< enum { npos = -1 };

---
>     enum npos_type_ { npos = -1 };
Also, I have checked the patch does not break MSVC 6.5, and I don't
think other compilers will have problems with it (it's perfectly legal
and innocent C++).
Joaquín  M López Muñoz
Telefónica, Investigación y Desarrollo

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