C++: SFINAE

Say you have this piece of code:

template <typename T>
void show(typename T::iterator x, typename T::iterator y)
{
	for (; x != y; ++x) cout << *x << endl;
}

int main()
{
	show<int>(16, 18);
}

Continue reading “C++: SFINAE”

Advertisement