Skip to content

fix(utils): inline path helpers for odr safety - #80

Closed
LimiNode wants to merge 2 commits into
mainfrom
codex/make-code-odr-compliant-and-modular
Closed

fix(utils): inline path helpers for odr safety#80
LimiNode wants to merge 2 commits into
mainfrom
codex/make-code-odr-compliant-and-modular

Conversation

@LimiNode

Copy link
Copy Markdown
Owner

Summary

  • mark free functions in logit/utils/path_utils.hpp as inline to avoid duplicate symbols across translation units
  • inline the is_closing_template helper in logit/utils/argument_utils.hpp
  • add a dual translation-unit smoke target (C++11/C++17) to ensure headers remain ODR-safe during builds

Testing

  • cmake --build build --target logit_odr_cxx11 logit_odr_cxx17
  • ctest --test-dir build --output-on-failure -R logit_odr

https://chatgpt.com/codex/tasks/task_e_68ce4156cb74832cb0bc244253eaa4e7

Mark path utility functions and argument parser helper inline to avoid ODR violations when the headers are included in multiple translation units. Add a dual-standard (C++11/C++17) two-TU smoke build to exercise the public API and catch regressions.
@LimiNode LimiNode closed this Dec 4, 2025
@LimiNode
LimiNode deleted the codex/make-code-odr-compliant-and-modular branch December 4, 2025 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant