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
4
peglib.h
4
peglib.h
@ -4616,8 +4616,8 @@ 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); };
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user