From 6c82ff42dea6c7b210fa39f4597491c9e2090634 Mon Sep 17 00:00:00 2001 From: profezzorn Date: Sun, 31 May 2020 14:57:21 -0700 Subject: [PATCH] fix reference return --- transitions/base.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transitions/base.h b/transitions/base.h index 1bd340707..084939fa1 100644 --- a/transitions/base.h +++ b/transitions/base.h @@ -1,7 +1,9 @@ #ifndef TRANSITIONS_BASE_H #define TRANSITIONS_BASE_H -#define AUTO_RETURN(X) -> decltype(X) { return (X); } +#include + +#define AUTO_RETURN(X) -> typename std::remove_const::type>::type { return (X); } template class TransitionBaseX {