Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include "funcdef.h"
- #include <string>
- //explicit instantiation
- template char Maxn(char x, char y);
- //explicit specialization
- template<> const char * Maxn<const char*>(const char *x, const char *y)
- {
- return strcmp(x, y) > 0 ? x : y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement