Original Post
I am trying to use boost enable_if for a vector class of which can be set to be of various dimensions. I want to be able to hide specific constructors and functions of which do not apply to all types of vector. The error I am getting is related to the std::size_t in the example below. Could someone show me how to use enable_if? example
template < std::size_t N = 3, typename T = float >
class Vector
{
Vector(const T &x);
Vector(const T &x, const T &y);
Vector(const T &x, const T &y, const T &z);
Vector(const T &x, const T &y, const T &z, const T &w);
}