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