Checks wether a type is convertible to another. More...
#include <dune/common/typetraits.hh>
Classes | |
struct | Big |
Public Types | |
enum | { exists = sizeof(test(makeFrom())) == sizeof(Small), isTwoWay = exists && Conversion<To, exists = sizeof(test(makeFrom())) == sizeof(Small), sameType = false } |
Public Member Functions | |
Conversion () |
Checks wether a type is convertible to another.
From | type you want to convert | |
To | type you want to obtain |
Inspired by this website
anonymous enum |
Dune::Conversion< From, To >::Conversion | ( | ) | [inline] |