diff options
Diffstat (limited to 'boost/detail/utf8_codecvt_facet.ipp')
-rw-r--r-- | boost/detail/utf8_codecvt_facet.ipp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/boost/detail/utf8_codecvt_facet.ipp b/boost/detail/utf8_codecvt_facet.ipp index 8a13124657..d39170fdab 100644 --- a/boost/detail/utf8_codecvt_facet.ipp +++ b/boost/detail/utf8_codecvt_facet.ipp @@ -216,9 +216,9 @@ unsigned int utf8_codecvt_facet::get_octet_count( else if (0xf8 <= lead_octet && lead_octet <= 0xfb) return 5; else return 6; } -BOOST_UTF8_END_NAMESPACE -namespace { +namespace detail { + template<std::size_t s> int get_cont_octet_out_count_impl(wchar_t word){ if (word < 0x80) { @@ -269,15 +269,14 @@ int get_cont_octet_out_count_impl<4>(wchar_t word){ #endif } -} // namespace anonymous +} // namespace detail -BOOST_UTF8_BEGIN_NAMESPACE // How many "continuing octets" will be needed for this word // == total octets - 1. int utf8_codecvt_facet::get_cont_octet_out_count( wchar_t word ) const { - return get_cont_octet_out_count_impl<sizeof(wchar_t)>(word); + return detail::get_cont_octet_out_count_impl<sizeof(wchar_t)>(word); } BOOST_UTF8_END_NAMESPACE |