ldn-softdev/jtc

[BUILD:1.74]Fail

Obarun opened this issue · 2 comments

Hi there,

I try to compile the 1.74 tag with your recommendations:
c++ -o jtc -Wall -std=c++14 -Ofast jtc.cpp

it fail. i use gcc version 9.1.0.
complete log cannot be possible due of the github limitations, but it should be relevant for you anyway. If not i can send you the complete log by email.

In file included from lib/Json.hpp:477, from jtc.cpp:9: lib/dbg.hpp: In constructor ‘Debug::Debug(X&)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:385:41: note: in expansion of macro ‘DBG’ 385 | template<class X> Debug(X &x) { x.DBG().severity(x); }; | ^~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:385:41: note: in expansion of macro ‘DBG’ 385 | template<class X> Debug(X &x) { x.DBG().severity(x); }; | ^~~ lib/dbg.hpp:385:46: error: expected primary-expression before ‘.’ token 385 | template<class X> Debug(X &x) { x.DBG().severity(x); }; | ^ lib/dbg.hpp: In member function ‘typename std::enable_if<__is_dbg_propagatable__<Subclass>(0), void>::type Debug::severity(Subclass&, Rest&& ...)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:422:32: note: in expansion of macro ‘DBG’ 422 | if(&s.DBG() != this) // updating foreign debuggable | ^~~ lib/dbg.hpp:422:32: error: expected ‘)’ before ‘if’ 422 | if(&s.DBG() != this) // updating foreign debuggable | ~ ^ | ) lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:422:32: note: in expansion of macro ‘DBG’ 422 | if(&s.DBG() != this) // updating foreign debuggable | ^~~ lib/dbg.hpp:422:38: error: expected primary-expression before ‘!=’ token 422 | if(&s.DBG() != this) // updating foreign debuggable | ^~ lib/dbg.hpp:423:34: error: expected primary-expression before ‘.’ token 423 | s.DBG().severity(severity()+1); // compel s' severity to mine | ^ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:424:48: note: in expansion of macro ‘DBG’ 424 | s.__dbg_propagate__(s.DBG().severity()); // propagate down s' members | ^~~ lib/dbg.hpp:424:53: error: expected primary-expression before ‘.’ token 424 | s.__dbg_propagate__(s.DBG().severity()); // propagate down s' members | ^ lib/dbg.hpp: In member function ‘typename std::enable_if<((! __is_dbg_propagatable__<Subclass>(0)) && std::is_class<_Tp>::value), void>::type Debug::severity(Subclass&, Rest&& ...)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:431:32: note: in expansion of macro ‘DBG’ 431 | if(&s.DBG() != this) // updating foreign debuggable | ^~~ lib/dbg.hpp:431:32: error: expected ‘)’ before ‘if’ 431 | if(&s.DBG() != this) // updating foreign debuggable | ~ ^ | ) lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:431:32: note: in expansion of macro ‘DBG’ 431 | if(&s.DBG() != this) // updating foreign debuggable | ^~~ lib/dbg.hpp:431:38: error: expected primary-expression before ‘!=’ token 431 | if(&s.DBG() != this) // updating foreign debuggable | ^~ lib/dbg.hpp:432:34: error: expected primary-expression before ‘.’ token 432 | s.DBG().severity(severity()+1); // compel s' severity to mine | ^ lib/dbg.hpp: In member function ‘typename std::enable_if<__is_dbg_propagatable__<Subclass>(0), void>::type Debug::increment(Subclass&, Rest&& ...)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:444:32: note: in expansion of macro ‘DBG’ 444 | if(&s.DBG() != this) // updating foreign debuggable | ^~~ lib/dbg.hpp:444:32: error: expected ‘)’ before ‘if’ 444 | if(&s.DBG() != this) // updating foreign debuggable | ~ ^ | ) lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:444:32: note: in expansion of macro ‘DBG’ 444 | if(&s.DBG() != this) // updating foreign debuggable | ^~~ lib/dbg.hpp:444:38: error: expected primary-expression before ‘!=’ token 444 | if(&s.DBG() != this) // updating foreign debuggable | ^~ lib/dbg.hpp:445:34: error: expected primary-expression before ‘.’ token 445 | s.DBG().severity(severity()+1); // compel s' severity to mine | ^ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:446:48: note: in expansion of macro ‘DBG’ 446 | s.__dbg_propagate__(s.DBG().severity()); // propagate down s' members | ^~~ lib/dbg.hpp:446:53: error: expected primary-expression before ‘.’ token 446 | s.__dbg_propagate__(s.DBG().severity()); // propagate down s' members | ^ lib/dbg.hpp: In member function ‘typename std::enable_if<((! __is_dbg_propagatable__<Subclass>(0)) && std::is_class<_Tp>::value), void>::type Debug::increment(Subclass&, Rest&& ...)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:453:32: note: in expansion of macro ‘DBG’ 453 | if(&s.DBG() != this) // updating foreign debuggable | ^~~ lib/dbg.hpp:453:32: error: expected ‘)’ before ‘if’ 453 | if(&s.DBG() != this) // updating foreign debuggable | ~ ^ | ) lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:453:32: note: in expansion of macro ‘DBG’ 453 | if(&s.DBG() != this) // updating foreign debuggable | ^~~ lib/dbg.hpp:453:38: error: expected primary-expression before ‘!=’ token 453 | if(&s.DBG() != this) // updating foreign debuggable | ^~ lib/dbg.hpp:454:34: error: expected primary-expression before ‘.’ token 454 | s.DBG().severity(severity()+1); // compel s' severity to mine | ^ lib/Streamstr.hpp: In member function ‘void Streamstr::__dbg_propagate__(int)’: lib/dbg.hpp:310:38: error: expected primary-expression before ‘.’ token 310 | #define __DEBUGGABLE_PROPAGATE__(X) X.__dbg__.severity(sev + 1, X); | ^ lib/macrolib.h:91:30: note: in expansion of macro ‘__DEBUGGABLE_PROPAGATE__’ 91 | #define _XM_01(__macro__, x) __macro__(x) | ^~~~~~~~~ lib/macrolib.h:57:33: note: in expansion of macro ‘_XM_01’ 57 | N, ...) N | ^ lib/macrolib.h:211:5: note: in expansion of macro ‘__XMACRO_TO_ARGS__’ 211 | __XMACRO_TO_ARGS__(macro_args) | ^~~~~~~~~~~~~~~~~~ lib/macrolib.h:230:5: note: in expansion of macro ‘__MACRO_TO_ARGS__’ 230 | __MACRO_TO_ARGS__(macro, ##macro_args) | ^~~~~~~~~~~~~~~~~ lib/dbg.hpp:316:16: note: in expansion of macro ‘MACRO_TO_ARGS’ 316 | { MACRO_TO_ARGS(__DEBUGGABLE_PROPAGATE__, ##args) } | ^~~~~~~~~~~~~ lib/dbg.hpp:309:39: note: in expansion of macro ‘__DEBUGGABLE_true__’ 309 | #define __DEBUGGABLE_IF__(X, args...) __DEBUGGABLE_##X##__(args) | ^~~~~~~~~~~~~ lib/dbg.hpp:308:40: note: in expansion of macro ‘__DEBUGGABLE_IF__’ 308 | #define __DEBUGGABLE_ARG__(X, args...) __DEBUGGABLE_IF__(X, args) | ^~~~~~~~~~~~~~~~~ lib/dbg.hpp:307:29: note: in expansion of macro ‘__DEBUGGABLE_ARG__’ 307 | #define DEBUGGABLE(args...) __DEBUGGABLE_ARG__(IF_ARGS(args), args) | ^~~~~~~~~~~~~~~~~~ lib/Streamstr.hpp:122:5: note: in expansion of macro ‘DEBUGGABLE’ 122 | DEBUGGABLE() | ^~~~~~~~~~ lib/dbg.hpp:310:66: error: expected primary-expression before ‘)’ token 310 | #define __DEBUGGABLE_PROPAGATE__(X) X.__dbg__.severity(sev + 1, X); | ^ lib/macrolib.h:91:30: note: in expansion of macro ‘__DEBUGGABLE_PROPAGATE__’ 91 | #define _XM_01(__macro__, x) __macro__(x) | ^~~~~~~~~ lib/macrolib.h:57:33: note: in expansion of macro ‘_XM_01’ 57 | N, ...) N | ^ lib/macrolib.h:211:5: note: in expansion of macro ‘__XMACRO_TO_ARGS__’ 211 | __XMACRO_TO_ARGS__(macro_args) | ^~~~~~~~~~~~~~~~~~ lib/macrolib.h:230:5: note: in expansion of macro ‘__MACRO_TO_ARGS__’ 230 | __MACRO_TO_ARGS__(macro, ##macro_args) | ^~~~~~~~~~~~~~~~~ lib/dbg.hpp:316:16: note: in expansion of macro ‘MACRO_TO_ARGS’ 316 | { MACRO_TO_ARGS(__DEBUGGABLE_PROPAGATE__, ##args) } | ^~~~~~~~~~~~~ lib/dbg.hpp:309:39: note: in expansion of macro ‘__DEBUGGABLE_true__’ 309 | #define __DEBUGGABLE_IF__(X, args...) __DEBUGGABLE_##X##__(args) | ^~~~~~~~~~~~~ lib/dbg.hpp:308:40: note: in expansion of macro ‘__DEBUGGABLE_IF__’ 308 | #define __DEBUGGABLE_ARG__(X, args...) __DEBUGGABLE_IF__(X, args) | ^~~~~~~~~~~~~~~~~ lib/dbg.hpp:307:29: note: in expansion of macro ‘__DEBUGGABLE_ARG__’ 307 | #define DEBUGGABLE(args...) __DEBUGGABLE_ARG__(IF_ARGS(args), args) | ^~~~~~~~~~~~~~~~~~ lib/Streamstr.hpp:122:5: note: in expansion of macro ‘DEBUGGABLE’ 122 | DEBUGGABLE() | ^~~~~~~~~~ lib/Streamstr.hpp: In member function ‘void Streamstr::ss_init_(Streamstr::const_iterator&)’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:225:9: note: in expansion of macro ‘DOUT’ 225 | DBG(0) DOUT() << "initializing: " << ENUMS(Streamstr::Strmod, mod_) << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:225:9: note: in expansion of macro ‘DOUT’ 225 | DBG(0) DOUT() << "initializing: " << ENUMS(Streamstr::Strmod, mod_) << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:225:9: note: in expansion of macro ‘DOUT’ 225 | DBG(0) DOUT() << "initializing: " << ENUMS(Streamstr::Strmod, mod_) << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:225:9: note: in expansion of macro ‘DOUT’ 225 | DBG(0) DOUT() << "initializing: " << ENUMS(Streamstr::Strmod, mod_) << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:225:9: note: in expansion of macro ‘DOUT’ 225 | DBG(0) DOUT() << "initializing: " << ENUMS(Streamstr::Strmod, mod_) << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:225:9: note: in expansion of macro ‘DOUT’ 225 | DBG(0) DOUT() << "initializing: " << ENUMS(Streamstr::Strmod, mod_) << std::endl; | ^~~~ lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:262:9: note: in expansion of macro ‘DOUT’ 262 | DBG(0) DOUT() << "read file: " << (is_buffered_cin()? "<stdin>":filename()) | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:262:9: note: in expansion of macro ‘DOUT’ 262 | DBG(0) DOUT() << "read file: " << (is_buffered_cin()? "<stdin>":filename()) | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:262:9: note: in expansion of macro ‘DOUT’ 262 | DBG(0) DOUT() << "read file: " << (is_buffered_cin()? "<stdin>":filename()) | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:262:9: note: in expansion of macro ‘DOUT’ 262 | DBG(0) DOUT() << "read file: " << (is_buffered_cin()? "<stdin>":filename()) | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Streamstr.hpp:262:9: note: in expansion of macro ‘DOUT’ 262 | DBG(0) DOUT() << "read file: " << (is_buffered_cin()? "<stdin>":filename()) | ^~~~ lib/Json.hpp: In member function ‘Json& Json::parse(std::string, Json::ParseTrailing)’: lib/dbg.hpp:332:15: error: no match for call to ‘(Debug) ()’ 332 | if( __dbg__(X) ) \ | ^ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/Json.hpp:1462:26: note: in expansion of macro ‘DBG’ 1462 | DBG().severity(tmp); | ^~~ lib/dbg.hpp:509:6: note: candidate: ‘bool Debug::operator()(short int, const char*) const’ 509 | bool Debug::operator()(short d, const char * fn) const { | ^~~~~ lib/dbg.hpp:509:6: note: candidate expects 2 arguments, 0 provided lib/dbg.hpp:334:20: error: expected primary-expression before ‘,’ token 334 | if( __dbg__(X, __func__) ); // now print the prompt | ^ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/Json.hpp:1462:26: note: in expansion of macro ‘DBG’ 1462 | DBG().severity(tmp); | ^~~ In file included from jtc.cpp:9: lib/Json.hpp:1462:31: error: expected primary-expression before ‘.’ token 1462 | DBG().severity(tmp); | ^ In file included from lib/Json.hpp:477, from jtc.cpp:9: lib/Json.hpp: In member function ‘void Json::__dbg_propagate__(int)’: lib/dbg.hpp:310:38: error: expected primary-expression before ‘.’ token 310 | #define __DEBUGGABLE_PROPAGATE__(X) X.__dbg__.severity(sev + 1, X); | ^ lib/macrolib.h:91:30: note: in expansion of macro ‘__DEBUGGABLE_PROPAGATE__’ 91 | #define _XM_01(__macro__, x) __macro__(x) | ^~~~~~~~~ lib/macrolib.h:57:33: note: in expansion of macro ‘_XM_01’ 57 | N, ...) N | ^ lib/macrolib.h:211:5: note: in expansion of macro ‘__XMACRO_TO_ARGS__’ 211 | __XMACRO_TO_ARGS__(macro_args) | ^~~~~~~~~~~~~~~~~~ lib/macrolib.h:230:5: note: in expansion of macro ‘__MACRO_TO_ARGS__’ 230 | __MACRO_TO_ARGS__(macro, ##macro_args) | ^~~~~~~~~~~~~~~~~ lib/dbg.hpp:316:16: note: in expansion of macro ‘MACRO_TO_ARGS’ 316 | { MACRO_TO_ARGS(__DEBUGGABLE_PROPAGATE__, ##args) } | ^~~~~~~~~~~~~ lib/dbg.hpp:309:39: note: in expansion of macro ‘__DEBUGGABLE_true__’ 309 | #define __DEBUGGABLE_IF__(X, args...) __DEBUGGABLE_##X##__(args) | ^~~~~~~~~~~~~ lib/dbg.hpp:308:40: note: in expansion of macro ‘__DEBUGGABLE_IF__’ 308 | #define __DEBUGGABLE_ARG__(X, args...) __DEBUGGABLE_IF__(X, args) | ^~~~~~~~~~~~~~~~~ lib/dbg.hpp:307:29: note: in expansion of macro ‘__DEBUGGABLE_ARG__’ 307 | #define DEBUGGABLE(args...) __DEBUGGABLE_ARG__(IF_ARGS(args), args) | ^~~~~~~~~~~~~~~~~~ lib/Json.hpp:1562:5: note: in expansion of macro ‘DEBUGGABLE’ 1562 | DEBUGGABLE() | ^~~~~~~~~~ lib/dbg.hpp:310:66: error: expected primary-expression before ‘)’ token 310 | #define __DEBUGGABLE_PROPAGATE__(X) X.__dbg__.severity(sev + 1, X); | ^ lib/macrolib.h:91:30: note: in expansion of macro ‘__DEBUGGABLE_PROPAGATE__’ 91 | #define _XM_01(__macro__, x) __macro__(x) | ^~~~~~~~~ lib/macrolib.h:57:33: note: in expansion of macro ‘_XM_01’ 57 | N, ...) N | ^ lib/macrolib.h:211:5: note: in expansion of macro ‘__XMACRO_TO_ARGS__’ 211 | __XMACRO_TO_ARGS__(macro_args) | ^~~~~~~~~~~~~~~~~~ lib/macrolib.h:230:5: note: in expansion of macro ‘__MACRO_TO_ARGS__’ 230 | __MACRO_TO_ARGS__(macro, ##macro_args) | ^~~~~~~~~~~~~~~~~ lib/dbg.hpp:316:16: note: in expansion of macro ‘MACRO_TO_ARGS’ 316 | { MACRO_TO_ARGS(__DEBUGGABLE_PROPAGATE__, ##args) } | ^~~~~~~~~~~~~ lib/dbg.hpp:309:39: note: in expansion of macro ‘__DEBUGGABLE_true__’ 309 | #define __DEBUGGABLE_IF__(X, args...) __DEBUGGABLE_##X##__(args) | ^~~~~~~~~~~~~ lib/dbg.hpp:308:40: note: in expansion of macro ‘__DEBUGGABLE_IF__’ 308 | #define __DEBUGGABLE_ARG__(X, args...) __DEBUGGABLE_IF__(X, args) | ^~~~~~~~~~~~~~~~~ lib/dbg.hpp:307:29: note: in expansion of macro ‘__DEBUGGABLE_ARG__’ 307 | #define DEBUGGABLE(args...) __DEBUGGABLE_ARG__(IF_ARGS(args), args) | ^~~~~~~~~~~~~~~~~~ lib/Json.hpp:1562:5: note: in expansion of macro ‘DEBUGGABLE’ 1562 | DEBUGGABLE() | ^~~~~~~~~~ lib/Json.hpp: In member function ‘Json& Json::parse(Streamstr::const_iterator&, Json::ParseTrailing)’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2365:9: note: in expansion of macro ‘DOUT’ 2365 | DBG(1) DOUT() << "finished parsing json" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2365:9: note: in expansion of macro ‘DOUT’ 2365 | DBG(1) DOUT() << "finished parsing json" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2365:9: note: in expansion of macro ‘DOUT’ 2365 | DBG(1) DOUT() << "finished parsing json" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2365:9: note: in expansion of macro ‘DOUT’ 2365 | DBG(1) DOUT() << "finished parsing json" << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2365:9: note: in expansion of macro ‘DOUT’ 2365 | DBG(1) DOUT() << "finished parsing json" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2365:9: note: in expansion of macro ‘DOUT’ 2365 | DBG(1) DOUT() << "finished parsing json" << std::endl; | ^~~~ lib/Json.hpp: In member function ‘void Json::parse_(Jnode&, Streamstr::const_iterator&)’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2405:3: note: in expansion of macro ‘DOUT’ 2405 | DOUT() << (jsp.is_streamed()? std::string(""): pfx + " ->") | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2405:3: note: in expansion of macro ‘DOUT’ 2405 | DOUT() << (jsp.is_streamed()? std::string(""): pfx + " ->") | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2405:3: note: in expansion of macro ‘DOUT’ 2405 | DOUT() << (jsp.is_streamed()? std::string(""): pfx + " ->") | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2405:3: note: in expansion of macro ‘DOUT’ 2405 | DOUT() << (jsp.is_streamed()? std::string(""): pfx + " ->") | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2405:3: note: in expansion of macro ‘DOUT’ 2405 | DOUT() << (jsp.is_streamed()? std::string(""): pfx + " ->") | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2405:3: note: in expansion of macro ‘DOUT’ 2405 | DOUT() << (jsp.is_streamed()? std::string(""): pfx + " ->") | ^~~~ lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2410:11: note: in expansion of macro ‘DOUT’ 2410 | DBG(5) { DOUT() << "classified as: " << ENUMS(Jnode::Jtype, node.type()) << std::endl; } | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2410:11: note: in expansion of macro ‘DOUT’ 2410 | DBG(5) { DOUT() << "classified as: " << ENUMS(Jnode::Jtype, node.type()) << std::endl; } | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2410:11: note: in expansion of macro ‘DOUT’ 2410 | DBG(5) { DOUT() << "classified as: " << ENUMS(Jnode::Jtype, node.type()) << std::endl; } | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2410:11: note: in expansion of macro ‘DOUT’ 2410 | DBG(5) { DOUT() << "classified as: " << ENUMS(Jnode::Jtype, node.type()) << std::endl; } | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2410:11: note: in expansion of macro ‘DOUT’ 2410 | DBG(5) { DOUT() << "classified as: " << ENUMS(Jnode::Jtype, node.type()) << std::endl; } | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2410:11: note: in expansion of macro ‘DOUT’ 2410 | DBG(5) { DOUT() << "classified as: " << ENUMS(Jnode::Jtype, node.type()) << std::endl; } | ^~~~ lib/Json.hpp: In static member function ‘static Jnode::Jtype Json::json_number_definition(std::__cxx11::basic_string<char>::const_iterator&)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/Json.hpp:2544:5: note: in expansion of macro ‘DBG’ 2544 | ss.DBG().severity(NDBG); | ^~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/Json.hpp:2544:5: note: in expansion of macro ‘DBG’ 2544 | ss.DBG().severity(NDBG); | ^~~ In file included from jtc.cpp:9: lib/Json.hpp:2544:10: error: expected primary-expression before ‘.’ token 2544 | ss.DBG().severity(NDBG); | ^ In file included from lib/Json.hpp:477, from jtc.cpp:9: lib/Json.hpp: In member function ‘Json::iterator Json::walk(const string&, Json::CacheState)’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2698:9: note: in expansion of macro ‘DOUT’ 2698 | DBG(0) DOUT() << "walk string: '" << wstr << "'" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2698:9: note: in expansion of macro ‘DOUT’ 2698 | DBG(0) DOUT() << "walk string: '" << wstr << "'" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2698:9: note: in expansion of macro ‘DOUT’ 2698 | DBG(0) DOUT() << "walk string: '" << wstr << "'" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2698:9: note: in expansion of macro ‘DOUT’ 2698 | DBG(0) DOUT() << "walk string: '" << wstr << "'" << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2698:9: note: in expansion of macro ‘DOUT’ 2698 | DBG(0) DOUT() << "walk string: '" << wstr << "'" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2698:9: note: in expansion of macro ‘DOUT’ 2698 | DBG(0) DOUT() << "walk string: '" << wstr << "'" << std::endl; | ^~~~ lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2704:9: note: in expansion of macro ‘DOUT’ 2704 | DBG(0) DOUT() << "dump of completed lexemes:" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2704:9: note: in expansion of macro ‘DOUT’ 2704 | DBG(0) DOUT() << "dump of completed lexemes:" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2704:9: note: in expansion of macro ‘DOUT’ 2704 | DBG(0) DOUT() << "dump of completed lexemes:" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2704:9: note: in expansion of macro ‘DOUT’ 2704 | DBG(0) DOUT() << "dump of completed lexemes:" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2704:9: note: in expansion of macro ‘DOUT’ 2704 | DBG(0) DOUT() << "dump of completed lexemes:" << std::endl; | ^~~~ lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2706:10: note: in expansion of macro ‘DOUT’ 2706 | DBG(0) DOUT() << '[' << i << "]: " << it.walk_path_()[i] << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2706:10: note: in expansion of macro ‘DOUT’ 2706 | DBG(0) DOUT() << '[' << i << "]: " << it.walk_path_()[i] << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2706:10: note: in expansion of macro ‘DOUT’ 2706 | DBG(0) DOUT() << '[' << i << "]: " << it.walk_path_()[i] << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2706:10: note: in expansion of macro ‘DOUT’ 2706 | DBG(0) DOUT() << '[' << i << "]: " << it.walk_path_()[i] << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2706:10: note: in expansion of macro ‘DOUT’ 2706 | DBG(0) DOUT() << '[' << i << "]: " << it.walk_path_()[i] << std::endl; | ^~~~ lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2710:10: note: in expansion of macro ‘DOUT’ 2710 | DBG(0) DOUT() << "invalidated search cache" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2710:10: note: in expansion of macro ‘DOUT’ 2710 | DBG(0) DOUT() << "invalidated search cache" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2710:10: note: in expansion of macro ‘DOUT’ 2710 | DBG(0) DOUT() << "invalidated search cache" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2710:10: note: in expansion of macro ‘DOUT’ 2710 | DBG(0) DOUT() << "invalidated search cache" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2710:10: note: in expansion of macro ‘DOUT’ 2710 | DBG(0) DOUT() << "invalidated search cache" << std::endl; | ^~~~ lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2715:10: note: in expansion of macro ‘DOUT’ 2715 | DBG(0) DOUT() << "initial walk: successful match" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2715:10: note: in expansion of macro ‘DOUT’ 2715 | DBG(0) DOUT() << "initial walk: successful match" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2715:10: note: in expansion of macro ‘DOUT’ 2715 | DBG(0) DOUT() << "initial walk: successful match" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2715:10: note: in expansion of macro ‘DOUT’ 2715 | DBG(0) DOUT() << "initial walk: successful match" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2715:10: note: in expansion of macro ‘DOUT’ 2715 | DBG(0) DOUT() << "initial walk: successful match" << std::endl; | ^~~~ lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2720:9: note: in expansion of macro ‘DOUT’ 2720 | DBG(0) DOUT() << "initial walk requires iteration" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2720:9: note: in expansion of macro ‘DOUT’ 2720 | DBG(0) DOUT() << "initial walk requires iteration" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2720:9: note: in expansion of macro ‘DOUT’ 2720 | DBG(0) DOUT() << "initial walk requires iteration" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2720:9: note: in expansion of macro ‘DOUT’ 2720 | DBG(0) DOUT() << "initial walk requires iteration" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2720:9: note: in expansion of macro ‘DOUT’ 2720 | DBG(0) DOUT() << "initial walk requires iteration" << std::endl; | ^~~~ lib/Json.hpp: In member function ‘void Json::parse_lexemes_(const string&, Json::iterator&) const’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2781:4: note: in expansion of macro ‘DOUT’ 2781 | DOUT() << "walked string: " << wstr << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2781:4: note: in expansion of macro ‘DOUT’ 2781 | DOUT() << "walked string: " << wstr << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2781:4: note: in expansion of macro ‘DOUT’ 2781 | DOUT() << "walked string: " << wstr << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2781:4: note: in expansion of macro ‘DOUT’ 2781 | DOUT() << "walked string: " << wstr << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2781:4: note: in expansion of macro ‘DOUT’ 2781 | DOUT() << "walked string: " << wstr << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2781:4: note: in expansion of macro ‘DOUT’ 2781 | DOUT() << "walked string: " << wstr << std::endl; | ^~~~ lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2782:4: note: in expansion of macro ‘DOUT’ 2782 | DOUT() << DBG_PROMPT(1) << "parsing here: " | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2782:4: note: in expansion of macro ‘DOUT’ 2782 | DOUT() << DBG_PROMPT(1) << "parsing here: " | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2782:4: note: in expansion of macro ‘DOUT’ 2782 | DOUT() << DBG_PROMPT(1) << "parsing here: " | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2782:4: note: in expansion of macro ‘DOUT’ 2782 | DOUT() << DBG_PROMPT(1) << "parsing here: " | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2782:4: note: in expansion of macro ‘DOUT’ 2782 | DOUT() << DBG_PROMPT(1) << "parsing here: " | ^~~~ lib/dbg.hpp:364:28: error: expected primary-expression before ‘.’ token 364 | #define DBG_PROMPT(X) DBG().prompt(__func__, X+1) | ^ lib/Json.hpp:2782:14: note: in expansion of macro ‘DBG_PROMPT’ 2782 | DOUT() << DBG_PROMPT(1) << "parsing here: " | ^~~~~~~~~~ lib/Json.hpp: In member function ‘std::string Json::extract_lexeme_(std::__cxx11::basic_string<char>::const_iterator&, char) const’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2831:9: note: in expansion of macro ‘DOUT’ 2831 | DBG(1) DOUT() << "parsed lexeme: " << lexeme << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2831:9: note: in expansion of macro ‘DOUT’ 2831 | DBG(1) DOUT() << "parsed lexeme: " << lexeme << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2831:9: note: in expansion of macro ‘DOUT’ 2831 | DBG(1) DOUT() << "parsed lexeme: " << lexeme << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2831:9: note: in expansion of macro ‘DOUT’ 2831 | DBG(1) DOUT() << "parsed lexeme: " << lexeme << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2831:9: note: in expansion of macro ‘DOUT’ 2831 | DBG(1) DOUT() << "parsed lexeme: " << lexeme << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2831:9: note: in expansion of macro ‘DOUT’ 2831 | DBG(1) DOUT() << "parsed lexeme: " << lexeme << std::endl; | ^~~~ lib/Json.hpp: In member function ‘void Json::parse_suffix_(std::__cxx11::basic_string<char>::const_iterator&, Json::iterator&, Json::vec_str&) const’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2866:10: note: in expansion of macro ‘DOUT’ 2866 | DBG(1) DOUT() << "search type sfx: " << ENUMS(Jsearch, sfx) << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2866:10: note: in expansion of macro ‘DOUT’ 2866 | DBG(1) DOUT() << "search type sfx: " << ENUMS(Jsearch, sfx) << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2866:10: note: in expansion of macro ‘DOUT’ 2866 | DBG(1) DOUT() << "search type sfx: " << ENUMS(Jsearch, sfx) << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2866:10: note: in expansion of macro ‘DOUT’ 2866 | DBG(1) DOUT() << "search type sfx: " << ENUMS(Jsearch, sfx) << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2866:10: note: in expansion of macro ‘DOUT’ 2866 | DBG(1) DOUT() << "search type sfx: " << ENUMS(Jsearch, sfx) << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2866:10: note: in expansion of macro ‘DOUT’ 2866 | DBG(1) DOUT() << "search type sfx: " << ENUMS(Jsearch, sfx) << std::endl; | ^~~~ lib/Json.hpp: In member function ‘std::__cxx11::basic_regex<char>::flag_type Json::parse_RE_flags_(std::string&) const’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2909:12: note: in expansion of macro ‘DOUT’ 2909 | DBG(1) DOUT() << "RE flag: '" << c_flg[1] << "' is set" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2909:12: note: in expansion of macro ‘DOUT’ 2909 | DBG(1) DOUT() << "RE flag: '" << c_flg[1] << "' is set" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2909:12: note: in expansion of macro ‘DOUT’ 2909 | DBG(1) DOUT() << "RE flag: '" << c_flg[1] << "' is set" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2909:12: note: in expansion of macro ‘DOUT’ 2909 | DBG(1) DOUT() << "RE flag: '" << c_flg[1] << "' is set" << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2909:12: note: in expansion of macro ‘DOUT’ 2909 | DBG(1) DOUT() << "RE flag: '" << c_flg[1] << "' is set" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2909:12: note: in expansion of macro ‘DOUT’ 2909 | DBG(1) DOUT() << "RE flag: '" << c_flg[1] << "' is set" << std::endl; | ^~~~ lib/Json.hpp: In member function ‘void Json::parse_quantifier_(std::__cxx11::basic_string<char>::const_iterator&, Json::iterator&) const’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2955:9: note: in expansion of macro ‘DOUT’ 2955 | DBG(2) DOUT() << "offset / range: " << back_ws.ofst() << " / " << back_ws.range() << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2955:9: note: in expansion of macro ‘DOUT’ 2955 | DBG(2) DOUT() << "offset / range: " << back_ws.ofst() << " / " << back_ws.range() << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2955:9: note: in expansion of macro ‘DOUT’ 2955 | DBG(2) DOUT() << "offset / range: " << back_ws.ofst() << " / " << back_ws.range() << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2955:9: note: in expansion of macro ‘DOUT’ 2955 | DBG(2) DOUT() << "offset / range: " << back_ws.ofst() << " / " << back_ws.range() << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2955:9: note: in expansion of macro ‘DOUT’ 2955 | DBG(2) DOUT() << "offset / range: " << back_ws.ofst() << " / " << back_ws.range() << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:2955:9: note: in expansion of macro ‘DOUT’ 2955 | DBG(2) DOUT() << "offset / range: " << back_ws.ofst() << " / " << back_ws.range() << std::endl; | ^~~~ lib/Json.hpp: In member function ‘void Json::parse_subscript_type_(Json::WalkStep&) const’: lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3094:9: note: in expansion of macro ‘DOUT’ 3094 | DBG(2) DOUT() << "partial: " << ws << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3094:9: note: in expansion of macro ‘DOUT’ 3094 | DBG(2) DOUT() << "partial: " << ws << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3094:9: note: in expansion of macro ‘DOUT’ 3094 | DBG(2) DOUT() << "partial: " << ws << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3094:9: note: in expansion of macro ‘DOUT’ 3094 | DBG(2) DOUT() << "partial: " << ws << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3094:9: note: in expansion of macro ‘DOUT’ 3094 | DBG(2) DOUT() << "partial: " << ws << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3094:9: note: in expansion of macro ‘DOUT’ 3094 | DBG(2) DOUT() << "partial: " << ws << std::endl; | ^~~~ lib/dbg.hpp:356:29: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3109:9: note: in expansion of macro ‘DOUT’ 3109 | DBG(2) DOUT() << "offset / range: " << ws.ofst() << " / " << ws.range() << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3109:9: note: in expansion of macro ‘DOUT’ 3109 | DBG(2) DOUT() << "offset / range: " << ws.ofst() << " / " << ws.range() << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3109:9: note: in expansion of macro ‘DOUT’ 3109 | DBG(2) DOUT() << "offset / range: " << ws.ofst() << " / " << ws.range() << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3109:9: note: in expansion of macro ‘DOUT’ 3109 | DBG(2) DOUT() << "offset / range: " << ws.ofst() << " / " << ws.range() << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3109:9: note: in expansion of macro ‘DOUT’ 3109 | DBG(2) DOUT() << "offset / range: " << ws.ofst() << " / " << ws.range() << std::endl; | ^~~~ lib/Json.hpp: In member function ‘bool Json::iterator::incremented()’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3165:18: note: in expansion of macro ‘DOUT’ 3165 | DBG(json(), 2) DOUT(json()) << "path is out of iterations / non-iterable" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3165:18: note: in expansion of macro ‘DOUT’ 3165 | DBG(json(), 2) DOUT(json()) << "path is out of iterations / non-iterable" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3165:18: note: in expansion of macro ‘DOUT’ 3165 | DBG(json(), 2) DOUT(json()) << "path is out of iterations / non-iterable" << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3165:18: note: in expansion of macro ‘DOUT’ 3165 | DBG(json(), 2) DOUT(json()) << "path is out of iterations / non-iterable" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3165:18: note: in expansion of macro ‘DOUT’ 3165 | DBG(json(), 2) DOUT(json()) << "path is out of iterations / non-iterable" << std::endl; | ^~~~ lib/Json.hpp: In member function ‘size_t Json::iterator::walk_()’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3210:33: note: in expansion of macro ‘DOUT’ 3210 | DBG(json(), 2) show_built_pv_(DOUT(json())); | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3210:33: note: in expansion of macro ‘DOUT’ 3210 | DBG(json(), 2) show_built_pv_(DOUT(json())); | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3210:33: note: in expansion of macro ‘DOUT’ 3210 | DBG(json(), 2) show_built_pv_(DOUT(json())); | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3210:33: note: in expansion of macro ‘DOUT’ 3210 | DBG(json(), 2) show_built_pv_(DOUT(json())); | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3210:33: note: in expansion of macro ‘DOUT’ 3210 | DBG(json(), 2) show_built_pv_(DOUT(json())); | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3219:5: note: in expansion of macro ‘DOUT’ 3219 | DOUT(json()) << ENUMS(Json::Jsearch, Json::Forward_itr) << " at [" << i << "], " | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3219:5: note: in expansion of macro ‘DOUT’ 3219 | DOUT(json()) << ENUMS(Json::Jsearch, Json::Forward_itr) << " at [" << i << "], " | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3219:5: note: in expansion of macro ‘DOUT’ 3219 | DOUT(json()) << ENUMS(Json::Jsearch, Json::Forward_itr) << " at [" << i << "], " | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3219:5: note: in expansion of macro ‘DOUT’ 3219 | DOUT(json()) << ENUMS(Json::Jsearch, Json::Forward_itr) << " at [" << i << "], " | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3230:19: note: in expansion of macro ‘DOUT’ 3230 | DBG(json(), 2) { DOUT(json()) << "finished walking: with "; show_built_pv_(DOUT(json())); } | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3230:19: note: in expansion of macro ‘DOUT’ 3230 | DBG(json(), 2) { DOUT(json()) << "finished walking: with "; show_built_pv_(DOUT(json())); } | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3230:19: note: in expansion of macro ‘DOUT’ 3230 | DBG(json(), 2) { DOUT(json()) << "finished walking: with "; show_built_pv_(DOUT(json())); } | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3230:19: note: in expansion of macro ‘DOUT’ 3230 | DBG(json(), 2) { DOUT(json()) << "finished walking: with "; show_built_pv_(DOUT(json())); } | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3230:19: note: in expansion of macro ‘DOUT’ 3230 | DBG(json(), 2) { DOUT(json()) << "finished walking: with "; show_built_pv_(DOUT(json())); } | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3230:77: note: in expansion of macro ‘DOUT’ 3230 | DBG(json(), 2) { DOUT(json()) << "finished walking: with "; show_built_pv_(DOUT(json())); } | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3230:77: note: in expansion of macro ‘DOUT’ 3230 | DBG(json(), 2) { DOUT(json()) << "finished walking: with "; show_built_pv_(DOUT(json())); } | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3230:77: note: in expansion of macro ‘DOUT’ 3230 | DBG(json(), 2) { DOUT(json()) << "finished walking: with "; show_built_pv_(DOUT(json())); } | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3230:77: note: in expansion of macro ‘DOUT’ 3230 | DBG(json(), 2) { DOUT(json()) << "finished walking: with "; show_built_pv_(DOUT(json())); } | ^~~~ lib/Json.hpp: In member function ‘void Json::iterator::walk_step_(size_t, Jnode*)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3248:17: note: in expansion of macro ‘DOUT’ 3248 | DBG(json(), 3) DOUT(json()) << "walking step: [" << wsi << "]" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3248:17: note: in expansion of macro ‘DOUT’ 3248 | DBG(json(), 3) DOUT(json()) << "walking step: [" << wsi << "]" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3248:17: note: in expansion of macro ‘DOUT’ 3248 | DBG(json(), 3) DOUT(json()) << "walking step: [" << wsi << "]" << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3248:17: note: in expansion of macro ‘DOUT’ 3248 | DBG(json(), 3) DOUT(json()) << "walking step: [" << wsi << "]" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3248:17: note: in expansion of macro ‘DOUT’ 3248 | DBG(json(), 3) DOUT(json()) << "walking step: [" << wsi << "]" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3257:24: note: in expansion of macro ‘DOUT’ 3257 | DBG(json(), 3) DOUT(json()) << "erased namespace: " | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3257:24: note: in expansion of macro ‘DOUT’ 3257 | DBG(json(), 3) DOUT(json()) << "erased namespace: " | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3257:24: note: in expansion of macro ‘DOUT’ 3257 | DBG(json(), 3) DOUT(json()) << "erased namespace: " | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3257:24: note: in expansion of macro ‘DOUT’ 3257 | DBG(json(), 3) DOUT(json()) << "erased namespace: " | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3263:24: note: in expansion of macro ‘DOUT’ 3263 | DBG(json(), 3) DOUT(json()) << "recorded fail-safe: [" << wsi << "]" << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3263:24: note: in expansion of macro ‘DOUT’ 3263 | DBG(json(), 3) DOUT(json()) << "recorded fail-safe: [" << wsi << "]" << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3263:24: note: in expansion of macro ‘DOUT’ 3263 | DBG(json(), 3) DOUT(json()) << "recorded fail-safe: [" << wsi << "]" << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3263:24: note: in expansion of macro ‘DOUT’ 3263 | DBG(json(), 3) DOUT(json()) << "recorded fail-safe: [" << wsi << "]" << std::endl; | ^~~~ lib/Json.hpp: In member function ‘void Json::iterator::walk_numeric_offset_(size_t, Jnode*)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3320:17: note: in expansion of macro ‘DOUT’ 3320 | DBG(json(), 1) DOUT(json()) << "found cached idx " << offset << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3320:17: note: in expansion of macro ‘DOUT’ 3320 | DBG(json(), 1) DOUT(json()) << "found cached idx " << offset << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3320:17: note: in expansion of macro ‘DOUT’ 3320 | DBG(json(), 1) DOUT(json()) << "found cached idx " << offset << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3320:17: note: in expansion of macro ‘DOUT’ 3320 | DBG(json(), 1) DOUT(json()) << "found cached idx " << offset << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3320:17: note: in expansion of macro ‘DOUT’ 3320 | DBG(json(), 1) DOUT(json()) << "found cached idx " << offset << std::endl; | ^~~~ lib/Json.hpp: In member function ‘Json::iter_jn Json::iterator::build_cache_(Jnode*, size_t)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3336:18: note: in expansion of macro ‘DOUT’ 3336 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3336:18: note: in expansion of macro ‘DOUT’ 3336 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3336:18: note: in expansion of macro ‘DOUT’ 3336 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3336:18: note: in expansion of macro ‘DOUT’ 3336 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3336:18: note: in expansion of macro ‘DOUT’ 3336 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3356:4: note: in expansion of macro ‘DOUT’ 3356 | DOUT(json()) << "built cache size: " << found_cache->VALUE.front().pv.size() | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3356:4: note: in expansion of macro ‘DOUT’ 3356 | DOUT(json()) << "built cache size: " << found_cache->VALUE.front().pv.size() | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3356:4: note: in expansion of macro ‘DOUT’ 3356 | DOUT(json()) << "built cache size: " << found_cache->VALUE.front().pv.size() | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3356:4: note: in expansion of macro ‘DOUT’ 3356 | DOUT(json()) << "built cache size: " << found_cache->VALUE.front().pv.size() | ^~~~ lib/Json.hpp: In member function ‘void Json::iterator::walk_search_(size_t, Jnode*)’: lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3420:18: note: in expansion of macro ‘DOUT’ 3420 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3420:18: note: in expansion of macro ‘DOUT’ 3420 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3420:18: note: in expansion of macro ‘DOUT’ 3420 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3420:18: note: in expansion of macro ‘DOUT’ 3420 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3420:18: note: in expansion of macro ‘DOUT’ 3420 | DBG(json(), 1) DOUT(json()) << "building cache for [" << wsi << "] " << skey << std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3425:4: note: in expansion of macro ‘DOUT’ 3425 | DOUT(json()) << "built cache size: " << found_cache->VALUE.size() << ", cache status: " | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3425:4: note: in expansion of macro ‘DOUT’ 3425 | DOUT(json()) << "built cache size: " << found_cache->VALUE.size() << ", cache status: " | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3425:4: note: in expansion of macro ‘DOUT’ 3425 | DOUT(json()) << "built cache size: " << found_cache->VALUE.size() << ", cache status: " | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3425:4: note: in expansion of macro ‘DOUT’ 3425 | DOUT(json()) << "built cache size: " << found_cache->VALUE.size() << ", cache status: " | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3431:18: note: in expansion of macro ‘DOUT’ 3431 | DBG(json(), 1) DOUT(json()) << "no cached instance found"<< std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected ‘)’ before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3431:18: note: in expansion of macro ‘DOUT’ 3431 | DBG(json(), 1) DOUT(json()) << "no cached instance found"<< std::endl; | ^~~~ lib/dbg.hpp:356:27: note: to match this ‘(’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3431:18: note: in expansion of macro ‘DOUT’ 3431 | DBG(json(), 1) DOUT(json()) << "no cached instance found"<< std::endl; | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock<std::mutex> mgard(__dbg__.mutex()); mgard.owns_lock(); mgard.unlock()) \ | ^~~~~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4 | ^~~~ lib/dbg.hpp:341:5: note: in expansion of macro ‘__DBG_4TH_ARG__’ 341 | __DBG_4TH_ARG__(dummy, ##args, __DBG_2_ARG__, __DBG_1_ARG__, __DBG_0_ARG__) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:342:22: note: in expansion of macro ‘__DBG_CHOOSER__’ 342 | #define DBG(args...) __DBG_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~ lib/dbg.hpp:356:30: note: in expansion of macro ‘DBG’ 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^~~ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3431:18: note: in expansion of macro ‘DOUT’ 3431 | DBG(json(), 1) DOUT(json()) << "no cached instance found"<< std::endl; | ^~~~ lib/dbg.hpp:356:35: error: expected primary-expression before ‘.’ token 356 | #define __DOUT_1_ARG__(X) (X.DBG().dout()) | ^ lib/dbg.hpp:357:49: note: in expansion of macro ‘__DOUT_1_ARG__’ 357 | #define __DOUT_3RD_ARG__(arg1, arg2, arg3, ...) arg3 | ^~~~ lib/dbg.hpp:359:5: note: in expansion of macro ‘__DOUT_3RD_ARG__’ 359 | __DOUT_3RD_ARG__(dummy, ##args, __DOUT_1_ARG__, __DOUT_0_ARG__) | ^~~~~~~~~~~~~~~~ lib/dbg.hpp:360:23: note: in expansion of macro ‘__DOUT_CHOOSER__’ 360 | #define DOUT(args...) __DOUT_CHOOSER__(args)(args) | ^~~~~~~~~~~~~~~~ lib/Json.hpp:3431:18: note: in expansion of macro ‘DOUT’ 3431 | DBG(json(), 1) DOUT(json()) << "no cached instance found"<< std::endl; | ^~~~ lib/dbg.hpp:332:2: error: expected unqualified-id before ‘if’ 332 | if( __dbg__(X) ) \ | ^~ lib/dbg.hpp:339:54: note: in expansion of macro ‘__DBG_1_ARG__’ 339 | #define __DBG_4TH_ARG__(arg1, arg2, arg3, arg4, ...) arg4

Best Regards

Hi, are you compiling under linux?
the cli you used c++ -o jtc -Wall -std=c++14 -Ofast jtc.cpp is for macos only, try one for linux:
c++ -o jtc -Wall -std=gnu++14 -static -Ofast jtc.cpp
- let me know if it works

Hi,

My bad, sorry to disturb you for mistake like this.
Works perfectly, thanks