Skip to content
Snippets Groups Projects

Extend traits to include VectorSpace tests and wrapped access to pTraits static members

Merged Mark OLESEN requested to merge feature-pTraits-vectorspace into develop

In several places need to check pTraits<Type>::nComponents and/or pTraits<Type>::rank (eg, to decide if transforms are required).
This works well until confronted with an arbitrary type for which no pTraits exists and which doesn't have its own corresponding static members.

Use SFINAE templating to provide new trait tests:

  • pTraits_rank
  • pTraits_nComponents
  • pTraits_has_zero
  • is_vectorspace
Edited by Mark OLESEN

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply