Update coroutine_handle<P>::promise to reflect N4663.
authorEric Fiselier <eric@efcs.ca>
Thu, 25 May 2017 18:52:34 +0000 (18:52 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 25 May 2017 18:52:34 +0000 (18:52 +0000)
commit2944c5a3fa1d1dea986774fd6545c9ff358212f1
tree5a32602c4d189b46273b69126bd351cdac5a2cef
parentb3cee2fb42e9117d6ec2e291e9e99cb4eb99c18d
Update coroutine_handle<P>::promise to reflect N4663.

This patch updates the promise() member to match the current spec.
Specifically it removes the non-const overload and make the return
type of the const overload non-const.

This patch also makes the ASSERT_NOT_NOEXCEPT tests libc++ specific,
since other implementations may be free to strengthen the specification.

llvm-svn: 303895
libcxx/include/experimental/coroutine
libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/promise.sh.cpp