Skip to content
Snippets Groups Projects

Fix subIndex method for UGGrid

Merged Carsten Gräser requested to merge feature/fix-uggrid-subindex into master

When using Hygrid::ifElse always keep in mind that some types in the functions given as "if" and "else" branch are fixed, such that compilation may fail altough the template is not instanciated.

To avoid this, those functions have one templated parameter which is instanciated with the identity for the selected branch. Passing objects through this branch will delay resolution of their type until instantiation which does only happen for the selected branch.

By passing the entity through id we use this to make subIndex compile for clang. It seems that gcc is less picky here.

Merge request reports

Pipeline #932 passed

Pipeline passed for 0ae6efe9 on feature/fix-uggrid-subindex

Merged by avatar (Apr 18, 2025 6:45am UTC)

Loading

Pipeline #961 passed

Pipeline passed for e2946e00 on master

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
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading