Skip to content

Commit 299aeba

Browse files
trying out a different approach (declarative) for presence of copy construcror
1 parent b58eb29 commit 299aeba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inst/include/Rcpp/traits/has_copy_constructor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace traits{
2727
template <typename T> struct has_copy_constructor :
2828
integral_constant<bool, std::is_copy_constructible<T>::value >{} ;
2929
#else
30-
template<typename T> struct has_copy_constructor : true_type ;
30+
template<typename T> struct has_copy_constructor : true_type {} ;
3131
#endif
3232

3333
} // traits

inst/unitTests/cpp/Module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ RCPP_EXPOSED_CLASS(ModuleTest)
122122

123123
namespace Rcpp {
124124
namespace traits {
125-
template <> struct has_copy_constructor<ModuleTest> : false_type ;
125+
template <> struct has_copy_constructor<ModuleTest> : false_type {} ;
126126
}
127127
}
128128

0 commit comments

Comments
 (0)