fork(1) download
  1. #include <type_traits>
  2.  
  3. template<typename Integer,
  4. std::enable_if_t<std::is_integral<Integer>::value>* = nullptr>
  5. void foo(Integer) {}
  6.  
  7. template<typename Floating,
  8. std::enable_if_t<std::is_floating_point<Floating>::value>* = nullptr>
  9. void foo(Floating) {}
  10.  
  11. int main()
  12. {
  13. foo(3);
  14. }
Success #stdin #stdout 0s 4264KB
stdin
Standard input is empty
stdout
Standard output is empty