aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/include/bits/fs_path.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libstdc++-v3/include/bits/fs_path.h b/libstdc++-v3/include/bits/fs_path.h
index a63e4b9..d13fb12 100644
--- a/libstdc++-v3/include/bits/fs_path.h
+++ b/libstdc++-v3/include/bits/fs_path.h
@@ -316,10 +316,7 @@ namespace __detail
path(const path& __p) = default;
- path(path&& __p)
-#if _GLIBCXX_USE_CXX11_ABI || _GLIBCXX_FULLY_DYNAMIC_STRING == 0
- noexcept
-#endif
+ path(path&& __p) noexcept
: _M_pathname(std::move(__p._M_pathname)),
_M_cmpts(std::move(__p._M_cmpts))
{ __p.clear(); }
@@ -624,6 +621,7 @@ namespace __detail
template<typename _Tp>
static auto
_S_convert(_Tp __str)
+ noexcept(is_same_v<typename _Tp::value_type, value_type>)
{
if constexpr (is_same_v<typename _Tp::value_type, value_type>)
return __str; // No conversion needed.