Opened 15 years ago

Closed 15 years ago

#1598 closed Bugs (fixed)

[regex] 'showbase' : is not a member of 'std'

Reported by: faridz@… Owned by: John Maddock
Milestone: Boost 1.35.0 Component: regex
Version: Boost Development Trunk Severity: Showstopper
Keywords: Cc: John Maddock

Description

The stdcxx is the another implementation of the STL (initially based on RogueWave STL).

The following errors are encountered when running boost regression tests on msvc with stdcxx-4.2.0.

unicode_iterator_test.cpp
..\boost/regex/pending/unicode_iterator.hpp(119) : error C2039: 'showbase' : is not a member of 'std'
..\boost/regex/pending/unicode_iterator.hpp(119) : error C2065: 'showbase' : undeclared identifier
..\boost/regex/pending/unicode_iterator.hpp(119) : error C2039: 'hex' : is not a member of 'std'
..\boost/regex/pending/unicode_iterator.hpp(119) : error C2065: 'hex' : undeclared identifier

The proposed patch:

Index: boost/regex/pending/unicode_iterator.hpp
===================================================================
--- boost/regex/pending/unicode_iterator.hpp	(revision 42908)
+++ boost/regex/pending/unicode_iterator.hpp	(working copy)
@@ -68,6 +68,7 @@
 #include <stdexcept>
 #ifndef BOOST_NO_STD_LOCALE
 #include <sstream>
+#include <ios>       // for std::showbase, std::hex
 #endif
 #include <limits.h> // CHAR_BIT

Change History (1)

comment:1 by John Maddock, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in latest SVN Trunk.

Note: See TracTickets for help on using tickets.