dimanche 31 décembre 2017

How do I declare SFINAE class?

Something is not working quite well for me. Is this the way to declare a class, that accepts only floating point template parameter?

template <typename T, swift::enable_if<std::is_floating_point<T>::value> = nullptr>
  class my_float;

I fail to define methods outside this class. Doesn't compile, not sure why

Aucun commentaire:

Enregistrer un commentaire