ldn-softdev/jtc

[FreeBSD] Fails to compile with -DBG_CC

lcook opened this issue · 1 comments

lcook commented

Since the latest version (1.76), toggling -DBG_CC will throw an error:

lib/Json.hpp:691:50: error: no member named 'ind' in '__Dbg_flow__'
                          if(DBG()(__Dbg_flow__::ind)) {        // dodge DBG's mutex dead-lock

lib/Json.hpp:695:65: error: no member named 'ind' in '__Dbg_flow__'
                                                  __Dbg_flow__::ind + 1, DBG().stamped(),

As the error suggests there's no member named ind in the __Dbg_flow__ class, but rather ind_ seen at dbg.hpp#L886 which is also a protected member. Either a new member could be exposed as public or to make ind_ public (although not ideal) — simple fix nonetheless. Thanks for your time on this project, cheers!

Hi, thanks for catching and reporting this one, let me publish a quick fix for this one.