We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e0425a commit 879481fCopy full SHA for 879481f
src/attributes.cpp
@@ -718,7 +718,7 @@ namespace attributes {
718
719
template <typename Stream>
720
void readFile(const std::string& file, Stream& os) {
721
- std::ifstream ifs(file);
+ std::ifstream ifs(file.c_str());
722
if (ifs.fail())
723
throw Rcpp::file_io_error(file);
724
os << ifs.rdbuf();
@@ -804,7 +804,7 @@ namespace attributes {
804
805
// remove duplicates
806
std::sort(localIncludes.begin(), localIncludes.end());
807
- std::vector<FileInfo>::const_iterator end =
+ std::vector<FileInfo>::iterator end =
808
std::unique(localIncludes.begin(), localIncludes.end());
809
localIncludes.erase(end, localIncludes.end());
810
0 commit comments