enable_if with copy constructors
问题 I am trying std::enable_if for the first time and struggling. Any guidance would be appreciated. As a toy example, here is a simple static vector class, for which I want to define a copy constructor, but the behaviour depends on the relative sizes of the vectors: just copy data into a smaller or same-sized vector copy data into a larger vector and then pad the rest with zeroes So the vector class is: template <size_t _Size> class Vector { double _data[_Size]; public: Vector() { std::fill(