#include
/ / Define the return value type class, determine the return value template
Template
Template
Template <> struct _return_type
Template <> struct _return_type
Template <> struct _return_type
Template <> struct _return_type
// A function of the maximum value can only be used for the same type of variable. // The reason is that when there are two different types of variables, it cannot be determined which type // is used as the return value. The return value // type can now be easily obtained by template skills. Template
Void main () {Max (3, 4.5);