Subject: [Boost-bugs] [Boost C++ Libraries] #12420: Boost filesystem should use POSIX API on cygwin
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-29 10:53:43
#12420: Boost filesystem should use POSIX API on cygwin
------------------------------+------------------------
Reporter: frederic.bron@⦠| Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.61.0 | Severity: Problem
Keywords: |
------------------------------+------------------------
Hi,
On cygwin, the following program
#include <iostream>
#include <boost/filesystem.hpp>
int main() {
auto p = boost::filesystem::path{"foo"};
p /= "bar";
std::cout << p.string() << '\n';
return 0;
}
outputs:
foo\bar
but cygwin is a posix system and I expect:
foo/bar
I read in the doc that "User-defined BOOST_POSIX_API and
BOOST_WINDOWS_API macros are no longer supported."
I guess system/api_config.hpp should be:
-# if defined(_WIN32) || defined(__CYGWIN__) // Windows default,
including MinGW and Cygwin
+# if defined(_WIN32) // Windows default, including MinGW
# define BOOST_WINDOWS_API
# else
# define BOOST_POSIX_API
# endif
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12420> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC