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:
Vinnie Falco
2014-01-17 12:19:04 -05:00
parent 969ea98fd9
commit 49bd8ac880
12 changed files with 13 additions and 89 deletions
+2 -1
View File
@@ -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, '=');