@@ -2069,14 +2069,13 @@ namespace attributes {
20692069 std::string cppConstructorArgToRArg (const std::string& cppArg) {
20702070
20712071 // 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" ));
20802079
20812080 // for each entry in the map above, see if we find it; if we do,
20822081 // return the R version
0 commit comments