Browse Source

Add redundant 'inline' because I can

Ole Krüger 10 years ago
parent
commit
01a3c91547
1 changed files with 4 additions and 4 deletions
  1. 4 4
      lib/luwra/functions.hpp

+ 4 - 4
lib/luwra/functions.hpp

@@ -24,7 +24,7 @@ namespace internal {
 
 	template <>
 	struct FunctionWrapper<void()> {
-		template <void(*function_pointer)()> static
+		template <void(*function_pointer)()> static inline
 		int invoke(State*) {
 			function_pointer();
 			return 0;
@@ -33,7 +33,7 @@ namespace internal {
 
 	template <typename R>
 	struct FunctionWrapper<R()> {
-		template <R(*function_pointer)()> static
+		template <R(*function_pointer)()> static inline
 		int invoke(State* state) {
 			return push(state, function_pointer());
 		}
@@ -41,7 +41,7 @@ namespace internal {
 
 	template <typename... A>
 	struct FunctionWrapper<void(A...)> {
-		template <void (*function_pointer)(A...)> static
+		template <void (*function_pointer)(A...)> static inline
 		int invoke(State* state) {
 			apply(state, function_pointer);
 			return 0;
@@ -50,7 +50,7 @@ namespace internal {
 
 	template <typename R, typename... A>
 	struct FunctionWrapper<R(A...)> {
-		template <R (*function_pointer)(A...)> static
+		template <R (*function_pointer)(A...)> static inline
 		int invoke(State* state) {
 			return push(
 				state,