Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include "pch.h"
  2. #include "funcdef.h"
  3. #include <string>
  4. //explicit instantiation
  5. template char Maxn(char x, char y);
  6.  
  7. //explicit specialization
  8. template<> const char * Maxn<const char*>(const char *x, const char *y)
  9. {
  10. return strcmp(x, y) > 0 ? x : y;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement