L
Lambda
I'd like to change all the character in a array to lower case.
I find transform() is convenient.
Because the array is large, I don't want to define another array. I
tried:
transform(buffer, buffer + size, buffer, tolower);
From the output, I find it works.
But when I compile it with Visual C++,
I find a warning that says 'Function call with parameters that may be
unsafe'.
I shouldn't use transform that way?
I must define another array to store the result or
do it without transform?
I find transform() is convenient.
Because the array is large, I don't want to define another array. I
tried:
transform(buffer, buffer + size, buffer, tolower);
From the output, I find it works.
But when I compile it with Visual C++,
I find a warning that says 'Function call with parameters that may be
unsafe'.
I shouldn't use transform that way?
I must define another array to store the result or
do it without transform?