From 8fa39c327d26ad0cc9453080ffa93b54df4d226b Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 29 May 2017 19:46:16 +0000 Subject: [PATCH] Fix in C++03 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@304173 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/experimental/coroutine | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/experimental/coroutine b/include/experimental/coroutine index c5a0e417c..21c1ea566 100644 --- a/include/experimental/coroutine +++ b/include/experimental/coroutine @@ -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 @@ -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