]> git.ipfire.org Git - thirdparty/pdns.git/commit
Bring some bugfixes from upstream (dropbox/json11).
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 17 Oct 2025 14:52:36 +0000 (16:52 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 17 Oct 2025 14:52:36 +0000 (16:52 +0200)
commit466a128831ae1fd6f8873d4176669175755aa36f
tree424fd655c0678d4b434e747c4d30f5ab774ad048
parenteaf206bf568e9b26ac698f172ad794d044ca9e9e
Bring some bugfixes from upstream (dropbox/json11).

- change Json map/vector conversions to invoke begin() directly instead of
  using key_type/value_type/mapped_type, to prevent false positives with
  std::optional, which has a value_type member type, but is not a container
  (ec4e45219af1d7cde3d58b49ed762376fccf1ace)

- make has_shape() return true for NUL type only if element actually exists
  (e2e3a11e99672b018e0e0657867e6a3439e180cf)

- improve handling of errors in comments
  (3bafee93e6d587d5bc6ef362c3e4457688e0ed5b)

- make operator== and operator< faster by checking for node identity
  (dabb88e83ebd6d5ef765864ec6d77bb4451c115e,
   42e6e71abb460e06c83a8f17c02e9bdf7959d2e7)

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
ext/json11/json11.cpp
ext/json11/json11.hpp