C++: SFINAE

Say you have this piece of code: If you compile the code you will get an error similar to this one: vec.cpp: In function 'int main()': vec.cpp:22:18: error: no matching function for call to 'show(int, int)' vec.cpp:22:18: note: candidate is: vec.cpp:7:57: note: template void show(typename T::iterator, typename T::iterator) And the error is quite obvious: your… Continue reading C++: SFINAE

Advertisements