Skip to content

Commit 692379f

Browse files
committed
add missing namespace Rcpp layer
1 parent d4ebbba commit 692379f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/generator_Module_CppFunction.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ file <- sprintf(
177177
#ifndef Rcpp_Module_generated_CppFunction_h
178178
#define Rcpp_Module_generated_CppFunction_h
179179
180+
namespace Rcpp {
181+
180182
template <typename RESULT_TYPE>
181183
class CppFunction0 : public CppFunction {
182184
public:
@@ -233,7 +235,7 @@ class CppFunction_WithFormals0 : public CppFunction {
233235
234236
private:
235237
RESULT_TYPE (*ptr_fun)(void);
236-
} ;
238+
};
237239
238240
239241
template <>
@@ -254,10 +256,12 @@ class CppFunction_WithFormals0<void> : public CppFunction {
254256
255257
private:
256258
void (*ptr_fun)(void) ;
257-
} ;
259+
};
258260
259261
%s
260262
263+
}
264+
261265
#endif
262266
', paste(sapply( 1:65, fun), collapse = "\n")
263267
)

0 commit comments

Comments
 (0)