From 23493c49af3df579b9cb007e81c9113ad63b170d Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 16 Mar 2017 23:40:00 +0100 Subject: [PATCH] do not decay; breaks const type inputs --- ostd/coroutine.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostd/coroutine.hh b/ostd/coroutine.hh index 7bd5e70..12cee34 100644 --- a/ostd/coroutine.hh +++ b/ostd/coroutine.hh @@ -565,7 +565,7 @@ private: /* we can use a pointer because even stack values are alive * as long as the coroutine is alive (and it is on every yield) */ - std::decay_t *p_result = nullptr; + std::remove_reference_t *p_result = nullptr; }; template