Parcourir la Source

Use proper instantiation of internal::Layout

Ole Krüger il y a 10 ans
Parent
commit
40ec6b495f
2 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 0 0
      examples/functions.cpp
  2. 1 1
      lib/luwra/stack.hpp

+ 0 - 0
examples/functions.cc → examples/functions.cpp


+ 1 - 1
lib/luwra/stack.hpp

@@ -35,7 +35,7 @@ namespace internal {
 	struct Layout<R(T1, TR...)> {
 		template <typename F, typename... A> static inline
 		R direct(State* state, int n, F hook, A&&... args) {
-			return Layout<TR...>::template direct<F, R>(
+			return Layout<R(TR...)>::template direct<F, R>(
 				state,
 				n + 1,
 				hook,