mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Fix problem with set_logger
This commit is contained in:
parent
b3f4381508
commit
1958bad23e
2
peglib.h
2
peglib.h
@ -4616,7 +4616,7 @@ public:
|
|||||||
void set_logger(
|
void set_logger(
|
||||||
std::function<void(size_t line, size_t col, const std::string &msg)>
|
std::function<void(size_t line, size_t col, const std::string &msg)>
|
||||||
log) {
|
log) {
|
||||||
log_ = [&](size_t line, size_t col, const std::string &msg,
|
log_ = [log](size_t line, size_t col, const std::string &msg,
|
||||||
const std::string & /*rule*/) { log(line, col, msg); };
|
const std::string & /*rule*/) { log(line, col, msg); };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user