Opened 13 years ago
Closed 13 years ago
#3631 closed Bugs (fixed)
Regex ICU support doesn't compile with #define U_USING_ICU_NAMESPACE 0
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | Boost 1.41.0 | Component: | regex |
Version: | Boost 1.40.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Attachments (2)
Change History (3)
by , 13 years ago
Attachment: | icuregex.cpp added |
---|
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Minimal example