Boost.Nowide
filesystem.hpp
1 //
2 // Copyright (c) 2012 Artyom Beilis (Tonkikh)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 #ifndef BOOST_NOWIDE_INTEGRATION_FILESYSTEM_HPP_INCLUDED
9 #define BOOST_NOWIDE_INTEGRATION_FILESYSTEM_HPP_INCLUDED
10 
11 #include <boost/filesystem/path.hpp>
12 #include <boost/nowide/utf8_codecvt.hpp>
13 namespace boost {
14  namespace nowide {
18  inline void nowide_filesystem()
19  {
20  std::locale tmp = std::locale(std::locale(),new boost::nowide::utf8_codecvt<wchar_t>());
21  boost::filesystem::path::imbue(tmp);
22  }
23  } // nowide
24 } // boost
25 
26 #endif
27 // vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
Definition: args.hpp:18
Definition: utf8_codecvt.hpp:30
void nowide_filesystem()
Definition: filesystem.hpp:18