I get the following error when this code is run:
syslog(LOG_ERR | LOG_USER, \"%s\",errorString);
cannot convert ‘const string {a
I found that std::basic_string has an item access method c_str() which seems to fix the compiling issue.
std::basic_string
c_str()
Here is a site with more information: http://en.cppreference.com/w/cpp/string/basic_string