[Boost-bugs] [Boost C++ Libraries] #3631: Regex ICU support doesn't compile with #define U_USING_ICU_NAMESPACE 0

Subject: [Boost-bugs] [Boost C++ Libraries] #3631: Regex ICU support doesn't compile with #define U_USING_ICU_NAMESPACE 0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-17 16:15:38


#3631: Regex ICU support doesn't compile with #define U_USING_ICU_NAMESPACE 0
------------------------------------------------------+---------------------
 Reporter: Matthias Schiffer <matthias@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: regex
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
------------------------------------------------------+---------------------
 To prevent namespace pollution, I definde U_USING_ICU_NAMESPACE to 0 in my
 projects before including any ICU headers. This prevents the ICU headers
 from adding a "using namespace icu" to the root namespace, so classes like
 UnicodeString are only available in the icu:: namespace.

 While most uses of ICU classes in the Boost Regex ICU headers are
 prepended with U_NAMESPACE_QUALIFIER (e.g. Locale and Collator), this
 seems to have been forgotten for UnicodeString, causing the compile to
 fail.

 Minimal example to reproduce and patch attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3631>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC