std::shared_ptr<NodeObject> NodeObject::createObject ( NodeObjectType type, Blob&& data, uint256 const& hash) { return std::make_shared <NodeObject> ( type, std::move (data), hash, PrivateAccess ()); }
NodeObject::Ptr NodeObject::createObject ( NodeObjectType type, LedgerIndex ledgerIndex, Blob& data, uint256 const & hash) { // The boost::ref is important or // else it will be passed by value! return boost::make_shared <NodeObject> ( type, ledgerIndex, boost::ref (data), hash, PrivateAccess ()); }