Hi, I need your help a bit in C++.
I am coding a dll but my source code has 2 errors.
Can you please help?
Both issues stem from the same declaration in my header file.
Code:
void execute_assert(bool expr, std::string str[]);
When I call the function:
Code:
v_assert(s >= MAX_ACL_DEPTH, "MAX_ACL_DEPTH too small");
It gives the error.
Code:
Error: cannot convert ‘const char*’ to ‘std::string* {aka std::basic_string<char>*}’ for argument ‘2’ to ‘void execute_assert(bool, std::string*)’
The second function call goes like this:
Code:
v_assert(s < 1, "Illegal acl size (" + deb + ")");
And it gives the error.
Code:
Error: cannot convert ‘std::basic_string<char>’ to ‘std::string* {aka std::basic_string<char>*}’ for argument ‘2’ to ‘void execute_assert(bool, std::string*)’
How do I fix this?
Thanks.