Skip to content
Snippets Groups Projects

Fix ambiguous call of constexpr variables

Merged Yen-Chen Chen requested to merge fix_constexpr into feature-add-cpp-codes

What is the bug

Some compilers (for example, Apple clang, LLVM clang) cannot figure out the constexpr members of a templated class if they are not specialized.

How do you fix it

Use specialized member references instead of this.

How urgent is the bugfix

  • I need it as soon as possible
  • I can wait for a couple of days
  • None of my current code is directly affected

Mandatory steps before review

  • Gitlab CI passes (Hint: use make format for linting)
  • Bugfix is covered by additional unit tests
  • Mark the merge request as ready by removing Draft:

Mandatory steps before merge

  • Reviewed by a maintainer
  • Incorporate review suggestions
  • Remember to edit the commit message and select the proper changelog category (feature/bugfix/other)
  • Prior to merging, please remove any boilerplate from the MR description, retaining only the What is the bug and How do you fix it section to maintain

You are not supposed to merge this request by yourself, the maintainers of libiconmath take care of this action!

Edited by Pradipta Samanta

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