You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 regels
477 B

  1. #include <cppmp/core/checker.h>
  2. template<typename X, typename = void>
  3. struct tpl;
  4. template<>
  5. struct tpl<char, void>
  6. {
  7. using is_default = cppmp::true_t;
  8. };
  9. template<>
  10. struct tpl<int, void>
  11. { };
  12. static_assert(
  13. cppmp::is_valid<void>::value,
  14. "Expected is_valid to be true");
  15. static_assert(
  16. cppmp::is_valid<tpl<int>>::value,
  17. "Expected is_valid to be true");
  18. static_assert(
  19. !cppmp::is_valid<tpl<float>>::value,
  20. "Expected is_valid to be false");