I have a template class
template< std::size_t Size > class Buffer { .... };
I want to prevent the creation of an instance of this template when the Size argument is zero. those. create a compiler warning for the following.
Buffer< 0 > buf;
but all other options will work.
Buffer< 10 > buf;
I am looking at using boost :: enable_if_c, but I don't understand how to make it work.
- Update-- I cannot use any C ++ 11 features, unfortunately
source share