diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-09-24 06:18:41 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-09-24 06:18:41 +0300 |
commit | 19d2c9a62b802bf661acab09455f0427e05cc368 (patch) | |
tree | d2a2eea4c4c3f10f4ec2d7446eff2825bfbeb889 /test/tests/current_path.cpp | |
parent | d65a2c94daf7d2811d5bc22b9a6352b7012f3aae (diff) |
Restore Visual Studio support. Many, many, many thanks to @jamboree for telling me the workaround for the ICEs.
Diffstat (limited to 'test/tests/current_path.cpp')
-rw-r--r-- | test/tests/current_path.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/tests/current_path.cpp b/test/tests/current_path.cpp index bde5cbb2..64d0f3f8 100644 --- a/test/tests/current_path.cpp +++ b/test/tests/current_path.cpp @@ -39,8 +39,9 @@ template <class FileHandleType, class DirectoryHandleType> static inline void Te #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wmissing-braces" #endif - FileHandleType h1 = afio::construct<FileHandleType>{afio::path_handle(), "tempfile", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::temporary, afio::file_handle::flag::none}().value(); // NOLINT - DirectoryHandleType h2 = afio::construct<DirectoryHandleType>{afio::path_handle(), "tempdir", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::all, afio::file_handle::flag::none}().value(); // NOLINT + afio::path_handle null_path_handle; + FileHandleType h1 = afio::construct<FileHandleType>{null_path_handle, "tempfile", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::temporary, afio::file_handle::flag::none}().value(); // NOLINT + DirectoryHandleType h2 = afio::construct<DirectoryHandleType>{null_path_handle, "tempdir", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::all, afio::file_handle::flag::none}().value(); // NOLINT #ifdef __clang__ #pragma clang diagnostic pop #endif |