diff --git a/octa/functional.h b/octa/functional.h index 1d92682..ba0626f 100644 --- a/octa/functional.h +++ b/octa/functional.h @@ -200,7 +200,8 @@ namespace octa { template struct FunctorInPlace { static constexpr bool value = sizeof(T) <= sizeof(FunctorData) - && (alignof(FunctorData) % alignof(T)) == 0; + && (alignof(FunctorData) % alignof(T)) == 0 + && octa::IsNothrowMoveConstructible::value; }; template