diff options
Diffstat (limited to 'libcxx/include/experimental/filesystem')
| -rw-r--r-- | libcxx/include/experimental/filesystem | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libcxx/include/experimental/filesystem b/libcxx/include/experimental/filesystem index 410235f11a3..739918bb2cb 100644 --- a/libcxx/include/experimental/filesystem +++ b/libcxx/include/experimental/filesystem @@ -1218,14 +1218,18 @@ private: template <class... _Args> _LIBCPP_NORETURN inline _LIBCPP_ALWAYS_INLINE +#ifndef _LIBCPP_NO_EXCEPTIONS void __throw_filesystem_error(_Args && ...__args) { -#ifndef _LIBCPP_NO_EXCEPTIONS throw filesystem_error(std::forward<_Args>(__args)...); +} #else +void __throw_filesystem_error(_Args&&...) +{ _VSTD::abort(); -#endif } +#endif + // operational functions |

