RE: [Boost-Users] Building regex/1.25.0 with MSVC6SP5, STLPort 4. 0
Markus Schöpflin [SMTP:markus.schoepflin@ginit-technology.com] wrote:
I've been trying to build the regex library but failed miserably. The compiler always dies with an error in "regex_traits.hpp" [...] It works if I use the STL supplied by Microsoft.
I don't use STLPort, but you might try a slight modification to boost/config/suffix.hpp. Search for BOOST_NO_STDC_NAMESPACE, and you'll see the line: namespace std { using ::ptrdiff_t; using ::size_t; } Try adding "using ::ctype;" into the list of using declarations. This may not work, though; I don't know if a using declaration can nominate the name of a template. -- Jim
Try adding "using ::ctype;" into the list of using declarations. This may not work, though; I don't know if a using declaration can nominate
--- In Boost-Users@y..., "Jim.Hyslop"
of a template.
No luck, still doesn't work. The problem seems to a bug in MSVCs namespace handling. If I import ctype et. al. into the global namespace and throw away the std qualifiers in the regex library for these names it does compile. I wonder why all this still worked in 1.21.1... the code doesn't look that much different. Markus
participants (2)
-
Jim.Hyslop
-
Markus Schoepflin