| 1 |
|
|---|
| 2 | #ifndef BOOST_IOSTREAMS_FILESYSTEM_V3_PATH_ADAPTER_HPP
|
|---|
| 3 | #define BOOST_IOSTREAMS_FILESYSTEM_V3_PATH_ADAPTER_HPP
|
|---|
| 4 |
|
|---|
| 5 | #include <boost/filesystem/path.hpp>
|
|---|
| 6 |
|
|---|
| 7 | namespace boost { namespace iostreams {
|
|---|
| 8 |
|
|---|
| 9 | # if defined(BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION == 3
|
|---|
| 10 |
|
|---|
| 11 | struct filesystem_v3_path_adapter
|
|---|
| 12 | {
|
|---|
| 13 | typedef boost::filesystem::path path_type;
|
|---|
| 14 | typedef path_type::string_type external_string_type;
|
|---|
| 15 | typedef path_type:: value_type value_type;
|
|---|
| 16 |
|
|---|
| 17 | filesystem_v3_path_adapter(const path_type& p) : m_p(p) {}
|
|---|
| 18 |
|
|---|
| 19 | const value_type* external_file_string() const { return m_p.c_str(); }
|
|---|
| 20 |
|
|---|
| 21 | private:
|
|---|
| 22 | path_type m_p;
|
|---|
| 23 | };
|
|---|
| 24 |
|
|---|
| 25 | # endif
|
|---|
| 26 |
|
|---|
| 27 | }}
|
|---|
| 28 |
|
|---|
| 29 | # endif // BOOST_IOSTREAMS_FILESYSTEM_V3_PATH_ADAPTER_HPP
|
|---|