Ticket #6833: boost_1_49_0-ICU.patch

File boost_1_49_0-ICU.patch, 1.1 KB (added by peter.klotz@…, 10 years ago)

Patch adds icu:: namespace scope

  • libs/locale/src/icu/predefined_formatters.hpp

    diff -Nur boost_1_49_0/libs/locale/src/icu/predefined_formatters.hpp boost_1_49_0.patched/libs/locale/src/icu/predefined_formatters.hpp
    old new  
    124124                    ap.reset(icu::NumberFormat::createPercentInstance(locale_,err));
    125125                    break;
    126126                case fmt_spell:
    127                     ap.reset(new icu::RuleBasedNumberFormat(URBNF_SPELLOUT,locale_,err));
     127                    ap.reset(new icu::RuleBasedNumberFormat(icu::URBNF_SPELLOUT,locale_,err));
    128128                    break;
    129129                case fmt_ord:
    130                     ap.reset(new icu::RuleBasedNumberFormat(URBNF_ORDINAL,locale_,err));
     130                    ap.reset(new icu::RuleBasedNumberFormat(icu::URBNF_ORDINAL,locale_,err));
    131131                    break;
    132132                default:
    133133                    throw std::runtime_error("locale::internal error should not get there");