Skip to content

glz::get support for generic_i64 and generic_u64#2318

Merged
stephenberry merged 1 commit intomainfrom
get_for_generic_json
Feb 17, 2026
Merged

glz::get support for generic_i64 and generic_u64#2318
stephenberry merged 1 commit intomainfrom
get_for_generic_json

Conversation

@stephenberry
Copy link
Owner

@stephenberry stephenberry commented Feb 17, 2026

Summary

Fixes JSON pointer lookups for glz::generic_i64 and glz::generic_u64 when using glz::get<> and glz::get_if<> (issue #2315).

Changes from main

  • include/glaze/json/generic.hpp
    • Generalized seek_op specialization from glz::generic to glz::generic_json<Mode>.
    • Generalized navigate_to overloads to support all generic number modes.
    • Generalized container-deserializing glz::get overloads to support all generic_json<Mode> types.
  • tests/json_test/generic_int_test.cpp
    • Added regression tests for JSON pointer access on both generic_i64 and generic_u64:
      • glz::get<bool>(..., "/Example/enabled")
      • glz::get<std::string>(..., "/Example/name")
      • glz::get_if<std::string>(..., "/Example/name")

@stephenberry stephenberry linked an issue Feb 17, 2026 that may be closed by this pull request
@stephenberry stephenberry merged commit 7ca8a3b into main Feb 17, 2026
43 of 44 checks passed
@stephenberry stephenberry deleted the get_for_generic_json branch February 17, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

generic_i64/u64: nonexistent_json_ptr using glz::get<>

1 participant