Skip to content

Commit

Permalink
Remove unused lambda captures (skystrife#55)
Browse files Browse the repository at this point in the history
This silences warnings from Clang 5.0's `-Wunused-lambda-capture` warning.
  • Loading branch information
fcharlie authored and Chase Geigle committed Aug 8, 2017
1 parent 789b388 commit 30727f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/cpptoml.h
Original file line number Diff line number Diff line change
Expand Up @@ -2425,7 +2425,7 @@ class parser
std::string::iterator find_end_of_number(std::string::iterator it,
std::string::iterator end)
{
return std::find_if(it, end, [this](char c) {
return std::find_if(it, end, [](char c) {
return !is_number(c) && c != '_' && c != '.' && c != 'e' && c != 'E'
&& c != '-' && c != '+';
});
Expand All @@ -2434,7 +2434,7 @@ class parser
std::string::iterator find_end_of_date(std::string::iterator it,
std::string::iterator end)
{
return std::find_if(it, end, [this](char c) {
return std::find_if(it, end, [](char c) {
return !is_number(c) && c != 'T' && c != 'Z' && c != ':' && c != '-'
&& c != '+' && c != '.';
});
Expand All @@ -2443,7 +2443,7 @@ class parser
std::string::iterator find_end_of_time(std::string::iterator it,
std::string::iterator end)
{
return std::find_if(it, end, [this](char c) {
return std::find_if(it, end, [](char c) {
return !is_number(c) && c != ':' && c != '.';
});
}
Expand Down

0 comments on commit 30727f9

Please sign in to comment.