From ae358c24fbb6338769a294d2cdc02d8443df3d15 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 26 May 2004 06:14:47 +0000 Subject: [PATCH] Employ BOOST_USE_FACET in hope this will fix problems on intel 7.1. [SVN r22924] --- src/convert.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/convert.cpp b/src/convert.cpp index 2db5da0..beb8baf 100644 --- a/src/convert.cpp +++ b/src/convert.cpp @@ -11,6 +11,8 @@ #include #include +#include + #include #include #include @@ -120,17 +122,17 @@ namespace boost { std::wstring from_local_8_bit(const std::string& s) { + typedef codecvt facet_type; return from_8_bit(s, - use_facet< codecvt >( - locale())); + BOOST_USE_FACET(facet_type, locale())); } std::string to_local_8_bit(const std::wstring& s) { + typedef codecvt facet_type; return to_8_bit(s, - use_facet< codecvt >( - locale())); + BOOST_USE_FACET(facet_type, locale())); }