trait.cpp 379 B

123456789101112131415161718
  1. #include <cxxomfort/base.hpp>
  2. #include <cxxomfort/cstddef.hpp>
  3. #include <cxxomfort/type_traits.hpp> // is_lvalue_reference
  4. #include <iostream>
  5. int main () {
  6. using namespace std;
  7. enum {
  8. test1 = std::is_arithmetic<float>::value ,
  9. test2 = std::is_compound<ostream>::value ,
  10. test3 = std::is_convertible<float,int>::value ,
  11. fin
  12. };
  13. static_assert (test1, "test1");
  14. }