Quote:
Originally Posted by redrpci2008
How am I supposed to do this? An example would be nice.
|
I can't tell you the exact case in which it occured because I don't remember it. However, explicitly converting a string means passing the string literal to the std::string constructor, for instance:
"MyFunction" takes a string as its only argument, if you call it like this:
Code:
MyFunction("Hello");
It
might throw an error, to fix it
explicitly create a string out of the string literal ("Hello"), hence:
Code:
MyFunction(std::string("Hello"))
Quote:
Originally Posted by Evor™
So, have somebody problems with db? It Has problems with starting. Sometimes it shows segmentation fault core dumped or it starts and shows error about Mysql connections, is it just The matter od mysql or serc btw. I used mainline db
Thanks in advance
|
You'll have to be more specific, show us the syserr (if any), if it instantly closes the process, fool the system into thinking the process is not yet finished (pause) to be able to see the error message.