Skip to content
Snippets Groups Projects
Commit b318c471 authored by est31's avatar est31
Browse files

Fix build for < C++11 since last commit

Build broke since last commit 479f3897 for compilers not supporting C++11.
Pre C++11, the constructor of std::ifstream only allows C like strings.
parent 479f3897
No related branches found
No related tags found
No related merge requests found
......@@ -345,7 +345,7 @@ bool Schematic::loadSchematicFromFile(const std::string &filename,
INodeDefManager *ndef, StringMap *replace_names,
NodeResolveMethod resolve_method)
{
std::ifstream is(filename, std::ios_base::binary);
std::ifstream is(filename.c_str(), std::ios_base::binary);
if (!is.good()) {
errorstream << "Schematic::loadSchematicFile: unable to open file '"
<< filename << "'" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment