Make the public Rights header self-contained #610
Labels
No labels
bug
cli
core
docs
event
experiment
figure
invariant
metrics
oracle
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
provenance
revocation
tests
workload
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erikinkinen/AES#610
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Make the public Rights header compile when included by itself.
Reproduction
While compiling the P2-02 baseline fixture producer against the untouched Phase 1 source, putting
#include <aes/core/rights.hpp>first fails:std::strong_orderingis not a member ofstd. The header defines a C++20 spaceship operator but includes only<cstdint>, relying on another header to include<compare>first. All 44 existing CTests pass because their include order supplies the missing declaration.Minimal reproduction: compile a translation unit containing only
#include <aes/core/rights.hpp>andint main() {}withg++ -std=c++20 -fsyntax-only -I core/include.Steps
rights.hpp.Acceptance
The public header is self-contained for C++20 consumers and does not depend on include order. No authority or rights semantics change. P2-02 must retain the original source identity and record any explicit include workaround used to capture old fixtures.