Skip to content

refactor: De-template Serialisable - #2535

Merged
rprospero merged 5 commits into
develop2from
dissolve2/de-template-serialisable
Jun 29, 2026
Merged

refactor: De-template Serialisable#2535
rprospero merged 5 commits into
develop2from
dissolve2/de-template-serialisable

Conversation

@trisyoungs

Copy link
Copy Markdown
Member

This PR takes the opportunity to remove the now-unnecessary context on Serialisable, allowing it to be simplified down to a normal class with templated functions. I am hopeful that this, along with a liberal sprinkling of missing override specifiers, will make the output on OSX builds terse enough to actually interpret.

@trisyoungs
trisyoungs requested a review from rprospero June 24, 2026 13:55

@RobBuchananCompPhys RobBuchananCompPhys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@rprospero rprospero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's outside the scope of this PR, but, since Serialisable is no longer a template class, we can more most of the method implementations into a corresponding cpp file and cut down on our compile time.

There's also come interesting things we could do, now that we're on C++20, where we make serialisable a concept instead of a class, but that is something to look at after Dissolve 2.0 is out.

@rprospero
rprospero merged commit 17447c6 into develop2 Jun 29, 2026
9 checks passed
@rprospero
rprospero deleted the dissolve2/de-template-serialisable branch June 29, 2026 09:46
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.

3 participants