Skip to content
Snippets Groups Projects
Commit c1177be5 authored by Oliver Sander's avatar Oliver Sander
Browse files

Reimplement the PromotionTraits class using decltype and declval

The previous implementation consisted of a list of promotion rules for
various types.  The new implementation is much shorter and more general:
it will also work for types not on the old list.  The promoted type is
now defined as the result type of the addition of the two input types.
There is no special reason to use addition here, but it does reproduce
the precise behavior of the old implementation.
parent 8238262c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment