@@ -2069,14 +2069,13 @@ namespace attributes {
2069
2069
std::string cppConstructorArgToRArg (const std::string& cppArg) {
2070
2070
2071
2071
// map Rcpp containers to R default initializers
2072
- static const std::map<std::string, std::string> RcppContainerToR = {
2073
- {" NumericVector" , " numeric" },
2074
- {" DoubleVector" , " numeric" },
2075
- {" CharacterVector" , " character" },
2076
- {" IntegerVector" , " integer" },
2077
- {" LogicalVector" , " logical" },
2078
- {" ComplexVector" , " complex" }
2079
- };
2072
+ static std::map<std::string, std::string> RcppContainerToR;
2073
+ RcppContainerToR.insert (std::make_pair (" NumericVector" , " numeric" ));
2074
+ RcppContainerToR.insert (std::make_pair (" DoubleVector" , " numeric" ));
2075
+ RcppContainerToR.insert (std::make_pair (" CharacterVector" , " character" ));
2076
+ RcppContainerToR.insert (std::make_pair (" IntegerVector" , " integer" ));
2077
+ RcppContainerToR.insert (std::make_pair (" LogicalVector" , " logical" ));
2078
+ RcppContainerToR.insert (std::make_pair (" ComplexVector" , " complex" ));
2080
2079
2081
2080
// for each entry in the map above, see if we find it; if we do,
2082
2081
// return the R version
0 commit comments