Make the traits more standard conform

Submitted by Hauke Heibel

Assigned to Hauke Heibel

Link to original bugzilla bug (#85)
Version: 3.0

Description

I propose to adapt our traits as eg.

  • ei_meta_if or

  • ei_is_same_type

to be more close to the standard. That means traits resolving to boolean values should inherit from std::true_type or std::false_type and thus expose a "value" rather than "ret".

Furthermore, ei_meta_if should expose a "type" rather than "ret" to be more standard conform.

We could be even more strict by trying to stick to the standard names for traits which makes the code more readable for newcomers.

One example is ei_meta_if. In the standard jargon this would be ei_conditional following std::conditional.

Depends on

#86 (closed)