mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-23 20:04:28 +08:00
Merge branch 'master' into feature-68-experimental-emscripten-support
This commit is contained in:
commit
3131e9735d
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
.vscode/
|
.vscode/
|
||||||
.idea/
|
.idea/
|
||||||
*.swp
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
@ -489,6 +489,12 @@ to the expected behavior.
|
|||||||
|
|
||||||
### v1.3.3 (wip)
|
### v1.3.3 (wip)
|
||||||
|
|
||||||
|
* Pull request [#69](https://github.com/gulrak/filesystem/pull/69), use `wchar_t` versions of
|
||||||
|
`std::fstream` from `ghc::filesystem::fstream` wrappers on Windows if using GCC with libc++.
|
||||||
|
* Bugfix for [#68](https://github.com/gulrak/filesystem/issues/68), better handling of
|
||||||
|
permission issues for directory iterators when using `fs::directory_options::skip_permission_denied`.
|
||||||
|
* Bugfix for [#63](https://github.com/gulrak/filesystem/issues/63), fixed issues on Windows
|
||||||
|
with clang++ and C++17.
|
||||||
* Pull request [#62](https://github.com/gulrak/filesystem/pull/62), various fixes for
|
* Pull request [#62](https://github.com/gulrak/filesystem/pull/62), various fixes for
|
||||||
better Android support, thanks for the PR
|
better Android support, thanks for the PR
|
||||||
* Pull request [#61](https://github.com/gulrak/filesystem/pull/61), `ghc::filesystem` now
|
* Pull request [#61](https://github.com/gulrak/filesystem/pull/61), `ghc::filesystem` now
|
||||||
|
@ -1122,7 +1122,7 @@ public:
|
|||||||
const basic_filebuf& operator=(const basic_filebuf&) = delete;
|
const basic_filebuf& operator=(const basic_filebuf&) = delete;
|
||||||
basic_filebuf<charT, traits>* open(const path& p, std::ios_base::openmode mode)
|
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(__GLIBCXX__)
|
||||||
return std::basic_filebuf<charT, traits>::open(p.wstring().c_str(), mode) ? this : 0;
|
return std::basic_filebuf<charT, traits>::open(p.wstring().c_str(), mode) ? this : 0;
|
||||||
#else
|
#else
|
||||||
return std::basic_filebuf<charT, traits>::open(p.string().c_str(), mode) ? this : 0;
|
return std::basic_filebuf<charT, traits>::open(p.string().c_str(), mode) ? this : 0;
|
||||||
@ -1135,7 +1135,7 @@ class basic_ifstream : public std::basic_ifstream<charT, traits>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
basic_ifstream() {}
|
basic_ifstream() {}
|
||||||
#if defined(GHC_OS_WINDOWS) && !defined(__GNUC__)
|
#if defined(GHC_OS_WINDOWS) && !defined(__GLIBCXX__)
|
||||||
explicit basic_ifstream(const path& p, std::ios_base::openmode mode = std::ios_base::in)
|
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)
|
: std::basic_ifstream<charT, traits>(p.wstring().c_str(), mode)
|
||||||
{
|
{
|
||||||
@ -1158,7 +1158,7 @@ class basic_ofstream : public std::basic_ofstream<charT, traits>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
basic_ofstream() {}
|
basic_ofstream() {}
|
||||||
#if defined(GHC_OS_WINDOWS) && !defined(__GNUC__)
|
#if defined(GHC_OS_WINDOWS) && !defined(__GLIBCXX__)
|
||||||
explicit basic_ofstream(const path& p, std::ios_base::openmode mode = std::ios_base::out)
|
explicit basic_ofstream(const path& p, std::ios_base::openmode mode = std::ios_base::out)
|
||||||
: std::basic_ofstream<charT, traits>(p.wstring().c_str(), mode)
|
: std::basic_ofstream<charT, traits>(p.wstring().c_str(), mode)
|
||||||
{
|
{
|
||||||
@ -1181,7 +1181,7 @@ class basic_fstream : public std::basic_fstream<charT, traits>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
basic_fstream() {}
|
basic_fstream() {}
|
||||||
#if defined(GHC_OS_WINDOWS) && !defined(__GNUC__)
|
#if defined(GHC_OS_WINDOWS) && !defined(__GLIBCXX__)
|
||||||
explicit basic_fstream(const path& p, std::ios_base::openmode mode = std::ios_base::in | std::ios_base::out)
|
explicit basic_fstream(const path& p, std::ios_base::openmode mode = std::ios_base::in | std::ios_base::out)
|
||||||
: std::basic_fstream<charT, traits>(p.wstring().c_str(), mode)
|
: std::basic_fstream<charT, traits>(p.wstring().c_str(), mode)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user