mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user