H
huangshan
hi all:
i am reading "C++ Templates: The Complete Guide"
in "2.4 Overloading Function Templates",
he say "This is because for C-strings, max(a,b) creates a new, temporary
local value that may be returned by the function by reference."
i can't understand that why in this condition will becomes an error.
i am reading "C++ Templates: The Complete Guide"
in "2.4 Overloading Function Templates",
he say "This is because for C-strings, max(a,b) creates a new, temporary
local value that may be returned by the function by reference."
i can't understand that why in this condition will becomes an error.