Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit cb0baf383b.
Boost.Nowide
filesystem.hpp
1//
2// Copyright (c) 2012 Artyom Beilis (Tonkikh)
3//
4// Distributed under the Boost Software License, Version 1.0.
5// https://www.boost.org/LICENSE_1_0.txt
6
7#ifndef BOOST_NOWIDE_INTEGRATION_FILESYSTEM_HPP_INCLUDED
8#define BOOST_NOWIDE_INTEGRATION_FILESYSTEM_HPP_INCLUDED
9
10#include <boost/nowide/utf8_codecvt.hpp>
11#include <boost/filesystem/path.hpp>
12
13namespace boost {
14namespace nowide {
20 inline std::locale nowide_filesystem()
21 {
22 std::locale tmp = std::locale(std::locale(), new boost::nowide::utf8_codecvt<wchar_t>());
23 return boost::filesystem::path::imbue(tmp);
24 }
25} // namespace nowide
26} // namespace boost
27
28#endif
Definition: utf8_codecvt.hpp:49
std::locale nowide_filesystem()
Definition: filesystem.hpp:20