소스 검색

Use proper instantiation of internal::Layout

Ole Krüger 10 년 전
부모
커밋
40ec6b495f
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,