diff options
Diffstat (limited to 'libcxx/include/experimental/filesystem')
| -rw-r--r-- | libcxx/include/experimental/filesystem | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libcxx/include/experimental/filesystem b/libcxx/include/experimental/filesystem index 0075ad2b084..7211c6b1efc 100644 --- a/libcxx/include/experimental/filesystem +++ b/libcxx/include/experimental/filesystem @@ -1176,6 +1176,17 @@ private: shared_ptr<_Storage> __paths_; }; +template <class... _Args> +_LIBCPP_NORETURN inline _LIBCPP_ALWAYS_INLINE +void __throw_filesystem_error(_Args && ...__args) +{ +#ifndef _LIBCPP_NO_EXCEPTIONS + throw filesystem_error(std::forward<_Args>(__args)...); +#else + _VSTD::abort(); +#endif +} + // operational functions _LIBCPP_FUNC_VIS |

