Skip to content

test: verify every public header compiles independently - #2

Open
ayushactiveat wants to merge 1 commit into
vixcpp:mainfrom
ayushactiveat:test/json-header-compilation
Open

ayushactiveat wants to merge 1 commit into
vixcpp:mainfrom
ayushactiveat:test/json-header-compilation

Conversation

@ayushactiveat

@ayushactiveat ayushactiveat commented Oct 18, 2026 •

Copy link
Copy Markdown

Description

adds compile tests to ensure each public JSON header includes everything required for independent use.

while writing tests, I also discovered and fixed a bug- ( vix::json::literals defined its own _json operator), this caused an ambiguity error when used alongside nlohmann's literals, so updated json.hpp to properly re-export nlohmann's operator.

Fixes #555


🔍 Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (modifies existing functionality or API)
  • Documentation update
  • Tests / CI improvements

How Has This Been Tested?

verified the changes locally by compiling each of the 7 headers in isolation, and by compiling the json.hpp header with the VIX_JSON_ENABLE_LITERALS=1 macro enabled.

Adds standalone compilation tests for all 7 public JSON headers. Also fixes an ambiguous _json operator definition in json.hpp by re-exporting nlohmann's literal. Fixes vixcpp/vix#555.
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.

1 participant