future (future_error(error_code)): Construct base class with error_code's message.
authorJonathan Wakely <jwakely@redhat.com>
Fri, 6 Mar 2015 12:31:43 +0000 (12:31 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 6 Mar 2015 12:31:43 +0000 (12:31 +0000)
commit664e99eac4333f9978959e9d8636b8e0d36527d5
tree9e1ce010a07dcdc5cf52d74e2ee088701c375876
parent7bfa4bc51e0ac7feb23fec0345bd85a2caf2d547
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
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/future
libstdc++-v3/src/c++11/future.cc