~/talk

Help! My Codebase has 5 JSON Libraries - How Generic Programming Rescued Me

Talkat CppCon 2022 · 2022-09-11..09-16· [databases]
links:none on file
slides:none on file

Codebase actually runs with RapidJSON, CPPRESTSDK, PicoJSON, nlohmann and Boost JSON and that fragmentation forces a practical solution: template the JWT logic to accept a JSON Traits layer and implement checks with is_detected and decltype/declval plus overload resolution hacks. The implementation uses static assertions and SFINAE to verify function signatures, handles member vs free functions, resolves overloads, and lands a JWT-CPP header-only PR that supports multiple libraries at the cost of added template complexity and brutal error messages.

AI-written summary · about

  1. 0:00Start
  2. 4:03What Does the Solution Look like
  3. 5:47Verifying Json Web Tokens
  4. 9:25Function Signatures as Types
  5. 10:20Creating Tokens
  6. 18:01Review
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.