Implementing a function that accepts only the user defined types in using the template specialization of C++.


A foo() in below source code will be accepted only the two types like myString and String2, but other types will occur an errors on compile time.

댓글