瀏覽代碼

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,