do not decay; breaks const type inputs

master
Daniel Kolesa 2017-03-16 23:40:00 +01:00
parent 0a0fe27317
commit 23493c49af
1 changed files with 1 additions and 1 deletions

View File

@ -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<T> *p_result = nullptr;
std::remove_reference_t<T> *p_result = nullptr;
};
template<typename T>