http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56905
Bug #: 56905
Summary: [C++11][DR 1130] std::copy_exception should be removed
or no longer be used
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: libstdc++
AssignedTo: [email protected]
ReportedBy: [email protected]
According to
http://cplusplus.github.io/LWG/lwg-defects.html#1130
std::copy_exception has been replaced by std::make_exception_ptr. While I
understand that this function still exists for backward compatibility reasons
in libstdc++, I noticed that other places of the library (such as <future>)
still refer to std::copy_exception, which complicates a possible transition in
the future. I would recommend to replace all usages of std::copy_exception by
the library by std::make_exception_ptr. std::make_exception_ptr should be
defined independent of std::copy_exception. Personally I would recommend to
remove std::copy_exception, alternatively to define it in terms of
std::make_exception_ptr.