forked from boostorg/beast
Tidy up for C++11, and fixes:
* Remove shared_ptr legacy support * Add make_unique support for pre-C++14 environments * Fix comparison bug in sqdb * Use std::shared_ptr in a few places
This commit is contained in:
@@ -139,7 +139,8 @@ Error session::open(String fileName, std::string options)
|
||||
|
||||
std::stringstream ssconn(options);
|
||||
|
||||
while (!err && !ssconn.eof() && ssconn.str().find('=') >= 0)
|
||||
while (!err && !ssconn.eof() &&
|
||||
ssconn.str().find('=') != std::string::npos)
|
||||
{
|
||||
std::string key, val;
|
||||
std::getline(ssconn, key, '=');
|
||||
|
||||
Reference in New Issue
Block a user