Author: ericwf Date: Mon May 29 14:46:16 2017 New Revision: 304173 URL: http://llvm.org/viewvc/llvm-project?rev=304173&view=rev Log: Fix <experimental/coroutine> in C++03
Modified: libcxx/trunk/include/experimental/coroutine Modified: libcxx/trunk/include/experimental/coroutine URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/coroutine?rev=304173&r1=304172&r2=304173&view=diff ============================================================================== --- libcxx/trunk/include/experimental/coroutine (original) +++ libcxx/trunk/include/experimental/coroutine Mon May 29 14:46:16 2017 @@ -148,7 +148,7 @@ public: // FIXME: Should from_address(nullptr) be allowed? _LIBCPP_ALWAYS_INLINE static coroutine_handle from_address(nullptr_t) _NOEXCEPT { - return {}; + return coroutine_handle(nullptr); } template <class _Tp, bool _CallIsValid = false> @@ -231,7 +231,7 @@ public: // FIXME: should from_address work with nullptr? _LIBCPP_ALWAYS_INLINE static coroutine_handle from_address(nullptr_t) _NOEXCEPT { - return {}; + return coroutine_handle(nullptr); } template <class _Tp, bool _CallIsValid = false> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits