Skip to content

Commit b318c47

Browse files
committedApr 17, 2015
Fix build for < C++11 since last commit
Build broke since last commit 479f389 for compilers not supporting C++11. Pre C++11, the constructor of std::ifstream only allows C like strings.
1 parent 479f389 commit b318c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/mg_schematic.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ bool Schematic::loadSchematicFromFile(const std::string &filename,
345345
INodeDefManager *ndef, StringMap *replace_names,
346346
NodeResolveMethod resolve_method)
347347
{
348-
std::ifstream is(filename, std::ios_base::binary);
348+
std::ifstream is(filename.c_str(), std::ios_base::binary);
349349
if (!is.good()) {
350350
errorstream << "Schematic::loadSchematicFile: unable to open file '"
351351
<< filename << "'" << std::endl;

0 commit comments

Comments
 (0)
Please sign in to comment.