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 {