#include <iostream>
Question1 What is the syntax of the following statement? And when should we use it? If this is a template specification, why should we provide a parameter, not just
template<int> void accepts_values_between_1_and_10() instead of template<int i> void accepts_values_between_1_and_10() template<int> void accepts_values_between_1_and_10(int i) instead of template<int i> void accepts_values_between_1_and_10()
Question2 Is it true that we should adopt this syntax in the area of ββfunctions if we should use this form?
Question3 How do I fix the definition of accepts_values_between_1_and_10_alternative so that it works with BOOST_STATIC_ASSERT ?
thanks
q0987 source share