mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Cleanup code format.
This commit is contained in:
parent
b8c2778e2a
commit
2badaa40a0
@ -430,9 +430,9 @@ TEST_CASE("Predicate test", "[general]")
|
||||
return stol(string(s, n), nullptr, 10);
|
||||
};
|
||||
|
||||
parser["NUMBER"].predicate = [](const char* s, size_t n, const any& val, const any& dt) {
|
||||
return val.get<long>() == 100;
|
||||
};
|
||||
parser["NUMBER"].predicate = [](const char* s, size_t n, const any& val, const any& dt) {
|
||||
return val.get<long>() == 100;
|
||||
};
|
||||
|
||||
long val;
|
||||
auto ret = parser.parse("100", val);
|
||||
|
Loading…
Reference in New Issue
Block a user