Skip to content

Commit

Permalink
refs 17, copy & paste error broke the build
Browse files Browse the repository at this point in the history
  • Loading branch information
gulrak committed Jun 2, 2019
1 parent d809482 commit 2aa08c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ghc/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ class basic_filebuf : public std::basic_filebuf<charT, traits>
const basic_filebuf& operator=(const basic_filebuf&) = delete;
basic_filebuf<charT, traits>* open(const path& p, std::ios_base::openmode mode)
{
#if defined(GHC_OS_WINDOWS) && && !defined(__GNUC__)
#if defined(GHC_OS_WINDOWS) && !defined(__GNUC__)
return std::basic_filebuf<charT, traits>::open(p.wstring().c_str(), mode) ? this : 0;
#else
return std::basic_filebuf<charT, traits>::open(p.c_str(), mode) ? this : 0;
Expand All @@ -940,7 +940,7 @@ class basic_ifstream : public std::basic_ifstream<charT, traits>
{
public:
basic_ifstream() {}
#if defined(GHC_OS_WINDOWS) && && !defined(__GNUC__)
#if defined(GHC_OS_WINDOWS) && !defined(__GNUC__)
explicit basic_ifstream(const path& p, std::ios_base::openmode mode = std::ios_base::in)
: std::basic_ifstream<charT, traits>(p.wstring().c_str(), mode)
{
Expand Down

0 comments on commit 2aa08c1

Please sign in to comment.