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-16 18:29:30 -05:00
parent fa10e90c9d
commit c341d1a71e
20 changed files with 49 additions and 107 deletions

View File

@@ -97,7 +97,7 @@ public:
{
Cache::mapped_ptr const p1 (c.fetch (3));
Cache::mapped_ptr p2 (make_shared <Value> ("three"));
Cache::mapped_ptr p2 (boost::make_shared <Value> ("three"));
c.canonicalize (3, p2);
expect (p1.get() == p2.get());
}