Skip to content

Commit 879481f

Browse files
committed
fix gcc compilation errors
1 parent 6e0425a commit 879481f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ namespace attributes {
718718

719719
template <typename Stream>
720720
void readFile(const std::string& file, Stream& os) {
721-
std::ifstream ifs(file);
721+
std::ifstream ifs(file.c_str());
722722
if (ifs.fail())
723723
throw Rcpp::file_io_error(file);
724724
os << ifs.rdbuf();
@@ -804,7 +804,7 @@ namespace attributes {
804804

805805
// remove duplicates
806806
std::sort(localIncludes.begin(), localIncludes.end());
807-
std::vector<FileInfo>::const_iterator end =
807+
std::vector<FileInfo>::iterator end =
808808
std::unique(localIncludes.begin(), localIncludes.end());
809809
localIncludes.erase(end, localIncludes.end());
810810

0 commit comments

Comments
 (0)