From 2aa08c17c10429b051ad6fe060992a32a9c79414 Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Sun, 2 Jun 2019 11:01:01 +0200 Subject: [PATCH] refs 17, copy & paste error broke the build --- include/ghc/filesystem.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index 698986e..47702f9 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -927,7 +927,7 @@ public: const basic_filebuf& operator=(const basic_filebuf&) = delete; basic_filebuf* 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::open(p.wstring().c_str(), mode) ? this : 0; #else return std::basic_filebuf::open(p.c_str(), mode) ? this : 0; @@ -940,7 +940,7 @@ class basic_ifstream : public std::basic_ifstream { 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(p.wstring().c_str(), mode) {