brunocodutra / metal

Love template metaprogramming
https://brunocodutra.github.io/metal/
MIT License
325 stars 23 forks source link

Value type of true_/false_ is defined as boolean in documentation, but it is a number #144

Closed ghost closed 3 years ago

ghost commented 3 years ago

Maybe, this issue is placed wrong. It is an issue regarding the documentation. The type of true_/false_ in the documentation is described as boolean constant, but it is a number. The documentation for eg. containsmentions the return value correctly as number. But it forwards to true_/false_. So someone could assume, that contains_resultin following code snipped is of type bool: auto contains_result = metal::contains<list, element>::value

brunocodutra commented 3 years ago

Thanks for taking the time to bring this to my attention, I've raised PR #145 to make it explicit in the documentation that true_ and false_ are Numbers.

ghost commented 3 years ago

Thank you!