We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ba2d7b commit 2d7c521Copy full SHA for 2d7c521
inst/include/Rcpp/sugar/functions/sapply.h
@@ -22,9 +22,6 @@
22
#ifndef Rcpp__sugar__sapply_h
23
#define Rcpp__sugar__sapply_h
24
25
-// This used to be conditional on a define and test in compiler.h
26
-#include <type_traits> // ::std::result_of
27
-
28
namespace Rcpp{
29
namespace sugar{
30
inst/include/Rcpp/traits/result_of.h
@@ -40,12 +40,7 @@ struct result_of{
40
41
template <typename T>
42
struct result_of<T>{
43
- typename T::result_type type ;
44
-} ;
45
46
-template <typename RESULT_TYPE, typename... Args>
47
-struct result_of< RESULT_TYPE (*)(Args...) >{
48
- typedef RESULT_TYPE type ;
+ typedef typename T::result_type type ;
49
} ;
50
51
}
0 commit comments