We should have removed this function years ago. It was the original
name for std:make_exception_ptr in C++0x drafts, which we kept
for backwards compatibility, but deprecated since 4.9.0.
It's not in any C++ standard, so should be removed now.
* libsupc++/exception_ptr.h (copy_exception): Remove deprecated
non-standard function.
Tested powerpc64le-linux, committed to trunk.
commit 37c22cb67141a141cd8f325c569aad618aa7095e
Author: Jonathan Wakely <jwak...@redhat.com>
Date: Wed Sep 20 14:11:24 2017 +0100
Remove non-standard std::copy_exception function
* libsupc++/exception_ptr.h (copy_exception): Remove deprecated
non-standard function.
diff --git a/libstdc++-v3/libsupc++/exception_ptr.h
b/libstdc++-v3/libsupc++/exception_ptr.h
index 0ece81d8137..dae4ca68fcf 100644
--- a/libstdc++-v3/libsupc++/exception_ptr.h
+++ b/libstdc++-v3/libsupc++/exception_ptr.h
@@ -201,19 +201,6 @@ namespace std
#endif
}
- // _GLIBCXX_RESOLVE_LIB_DEFECTS
- // 1130. copy_exception name misleading
- /// Obtain an exception_ptr pointing to a copy of the supplied object.
- /// This function is deprecated, use std::make_exception_ptr instead.
- template<typename _Ex>
- exception_ptr
- copy_exception(_Ex __ex) _GLIBCXX_USE_NOEXCEPT _GLIBCXX_DEPRECATED;
-
- template<typename _Ex>
- exception_ptr
- copy_exception(_Ex __ex) _GLIBCXX_USE_NOEXCEPT
- { return std::make_exception_ptr<_Ex>(__ex); }
-
// @} group exceptions
} // namespace std