Skip to content

Add BOOST_CLASS_TEMPLATE_VERSION for versioning class templates#356

Open
gennaroprota wants to merge 1 commit into
developfrom
feature/class-template-version-macro
Open

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

Conversation

@gennaroprota

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 issue #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
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