Question for function

I want to create a line RscString class as a parameter of the Validate() function.
ex)
image.png

const RscString<16384> PEM(pem.c_str()); //(pem , id are std::string)
const RscString<80> ID(id.c_str());
this code occure error img)
image.png
i’m not sure where I made the mistake, can you help?

best regards.

This question is being handled in this conversation:
https://www.plcnext-community.net/forum/#/discussion/3839/securestrncpy