Skip to content

Add BOOST_CLASS_TEMPLATE_VERSION for versioning class templates#356

Merged
gennaroprota merged 1 commit into
developfrom
feature/class-template-version-macro
Jul 23, 2026
Merged

Add BOOST_CLASS_TEMPLATE_VERSION for versioning class templates#356
gennaroprota merged 1 commit into
developfrom
feature/class-template-version-macro

Conversation

@gennaroprota

@gennaroprota gennaroprota commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

BOOST_CLASS_VERSION writes a full specialization of the version trait, so it can only version a concrete class. A class template needs a partial specialization, which users previously had to write by hand and which neither the tutorial nor version.hpp explained.

BOOST_CLASS_TEMPLATE_VERSION writes that partial specialization.

Closes #179.

`BOOST_CLASS_VERSION` writes a full specialization of the version trait,
so it can only version a concrete class. A class template needs a
partial specialization, which users previously had to write by hand and
which neither the tutorial nor version.hpp explained.

`BOOST_CLASS_TEMPLATE_VERSION` writes that partial specialization.

Closes issue #179.
@gennaroprota
gennaroprota force-pushed the feature/class-template-version-macro branch from f945bde to b29440c Compare July 22, 2026 07:53
@gennaroprota
gennaroprota added this pull request to the merge queue Jul 23, 2026
Merged via the queue into develop with commit f90c2f2 Jul 23, 2026
165 of 172 checks passed
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.

Versioning for templated classes

1 participant