ldn-softdev / jtc

JSON processing utility
MIT License
498 stars 33 forks source link

[BUILD:1.74]Fail #4

Closed Obarun closed 5 years ago

Obarun commented 5 years ago

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 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 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 Debug(X &x) { x.DBG().severity(x); }; | ^~~ lib/dbg.hpp:385:46: error: expected primary-expression before ‘.’ token 385 | template Debug(X &x) { x.DBG().severity(x); }; | ^ lib/dbg.hpp: In member function ‘typename std::enable_if<is_dbg_propagatable(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 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(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 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(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 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(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 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 DEBUGGABLEIF(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::ssinit(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 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()? "":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()? "":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()? "":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()? "":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()? "":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 DEBUGGABLEIF(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 DEBUGGABLEIF(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 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 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 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::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 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 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.walkpath()[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.walkpath()[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.walkpath()[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.walkpath()[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.walkpath()[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::parselexemes(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 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::extractlexeme(std::cxx11::basic_string::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 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::parsesuffix(std::cxx11::basic_string::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 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::flag_type Json::parse_REflags(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 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::parsequantifier(std::cxx11::basic_string::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 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_subscripttype(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 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 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 ‘sizet 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_builtpv(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_builtpv(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_builtpv(DOUT(json())); | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock 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_builtpv(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_builtpv(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_builtpv(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_builtpv(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_builtpv(DOUT(json())); } | ^~~~ lib/dbg.hpp:333:63: error: ‘mgard’ was not declared in this scope 333 | for(std::unique_lock 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_builtpv(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_builtpv(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_builtpv(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_builtpv(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_builtpv(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_builtpv(DOUT(json())); } | ^~~~ lib/Json.hpp: In member function ‘void Json::iterator::walkstep(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 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_numericoffset(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 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::buildcache(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 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::walksearch(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 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 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

ldn-softdev commented 5 years ago

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

Obarun commented 5 years ago

Hi,

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