aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2015-03-06 12:31:43 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2015-03-06 12:31:43 +0000
commit664e99eac4333f9978959e9d8636b8e0d36527d5 (patch)
tree9e1ce010a07dcdc5cf52d74e2ee088701c375876 /libstdc++-v3/src
parent7bfa4bc51e0ac7feb23fec0345bd85a2caf2d547 (diff)
downloadgcc-664e99eac4333f9978959e9d8636b8e0d36527d5.zip
gcc-664e99eac4333f9978959e9d8636b8e0d36527d5.tar.gz
gcc-664e99eac4333f9978959e9d8636b8e0d36527d5.tar.bz2
future (future_error(error_code)): Construct base class with error_code's message.
* include/std/future (future_error(error_code)): Construct base class with error_code's message. * src/c++11/future.cc (future_error::what()): Do not call c_str() on temporary string. From-SVN: r221236
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/c++11/future.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++11/future.cc b/libstdc++-v3/src/c++11/future.cc
index c711a5f..3cf503b 100644
--- a/libstdc++-v3/src/c++11/future.cc
+++ b/libstdc++-v3/src/c++11/future.cc
@@ -75,7 +75,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
future_error::~future_error() noexcept { }
const char*
- future_error::what() const noexcept { return _M_code.message().c_str(); }
+ future_error::what() const noexcept { return logic_error::what(); }
#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) \
&& (ATOMIC_INT_LOCK_FREE > 1)