Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
added include for std::mismatch and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JossWhittle committed May 4, 2014
1 parent e1554ab commit f32479e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flint/Polyfill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <sys/stat.h>
#include <fstream>
#include <sstream>
#include <algorithm>

// Conditional includes for folder traversal
#ifdef _WIN32
Expand Down Expand Up @@ -143,7 +144,7 @@ namespace flint {
* Returns true if str ends with an instance of prefix
*/
bool startsWith(const string &str, const string &prefix) {
return std::mismatch(begin(prefix), end(prefix), begin(str)).first == end(prefix);
return mismatch(begin(prefix), end(prefix), begin(str)).first == end(prefix);
};

/**
Expand Down

0 comments on commit f32479e

Please sign in to comment.