mapbox / variant

C++11/C++14 Variant
BSD 3-Clause "New" or "Revised" License
371 stars 101 forks source link

Add static constexpr which<T>() to obtain type ids #111

Closed kkaefer closed 8 years ago

kkaefer commented 8 years ago

The result of which() is an integer, but there's no constexpr way to get a certain types which value.