Skip to content

Commit

Permalink
Fixed build for OSX. Refs #7948.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Oct 29, 2013
1 parent bebd94e commit dd7bf27
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace Algorithms
// Parse file
vector<string> vec_line;
ifstream infile;
infile.open(infilename, ios::in);
infile.open(infilename.c_str(), ios::in);
if (!infile.is_open())
{
stringstream errss;
Expand All @@ -96,9 +96,6 @@ namespace Algorithms
{
// Split "\n"
vector <string> fields;

g_log.information() << "Original = \"" << line << "\"\n";

boost::algorithm::split( fields, line, boost::algorithm::is_any_of( "\n" ) );
if (fields.size() == 0)
throw runtime_error("Impossible to have an empty line. ");
Expand Down

0 comments on commit dd7bf27

Please sign in to comment.