The std::ofstream::open() do not take string as argument but char*

under MacOS at least.
This commit is contained in:
Jean-Paul Chaput 2013-04-22 21:43:06 +00:00
parent cb5fede680
commit 563816a700
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ namespace Bookshelf {
bool Parser::_openStream ( const Utilities::Path& filePath )
{
if ( _stream.is_open() ) _closeStream();
_stream.open ( filePath.string() );
_stream.open ( filePath.string().c_str() );
_lineno = 0;
return _stream.is_open();