[utility] Add PriorityTag class
This allows to give priorities to otherwise ambiguous overloads. It's main use is to make multiple overloads work, when only some are ruled out via SFINAE. This is e.g. used in the concepts check that I'll move to dune-common soon. The implemention is trivial but makes such applications more readable and idiomatic compared to other approaches where, e.g., null pointers are passed to overloads have T* and void* dummy arguments. Due to it's simplicity a separate header may not be justified, but none of the existing seems to fit.
dune/common/prioritytag.hh
0 → 100644
Please register or sign in to comment