Skip to content

Redesign Matrix class to use CRTP#60

Merged
tomstewart89 merged 9 commits intomasterfrom
switch-2-crtp
May 11, 2023
Merged

Redesign Matrix class to use CRTP#60
tomstewart89 merged 9 commits intomasterfrom
switch-2-crtp

Conversation

@tomstewart89
Copy link
Owner

The current design had a few flaws:

  • MemTypes were required to define an elem_t
  • Really difficult to declare MemTypes that were const, leading to lots of mutables everywhere

This PR switches the MemT over to a CRTP design which is cleaner and allows lots more operations to take place at compile time.

@tomstewart89
Copy link
Owner Author

This also fixes #59

@tomstewart89 tomstewart89 merged commit 68cd937 into master May 11, 2023
@tomstewart89 tomstewart89 deleted the switch-2-crtp branch May 11, 2023 11:02
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