コード例 #1
0
ファイル: NodeObject.cpp プロジェクト: xdv/divvyd
std::shared_ptr<NodeObject>
NodeObject::createObject (
    NodeObjectType type,
    Blob&& data,
    uint256 const& hash)
{
    return std::make_shared <NodeObject> (
        type, std::move (data), hash, PrivateAccess ());
}
コード例 #2
0
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 ());
}