I did previously overload the function, but my computer crashed, lost all my projects, so i am rewriting, and along the way experimenting as i wrote alot of it along time ago in a different way when i was less experienced. And for some reason i dislike overloading when i can with less with complication, but same result create only one function for several purposes.
|gives you a char array and when you try to pass it to the function it will decay to a pointer|
Ah, i see. I thought it was passes as a string, that would explain the error. And when you mention it, it makes more sense that it is passed as const char*, as type "string" is a class composed of pointer to char, so the core language is used i guess.
|your function will still not work because the whole function has to compile for that type. |
Another thing i was unaware of about templates.
Your response was just what i needed, i learned important things about templates and passing pure: "osdowa" to a function of template parameter, thank you.
Now when i refer back to overloading for this case, you are absolutely right, even tho i dislike it for strange reasons, maybe it bothers me with extra implementation.
And i finally understand the error message, thank you again.