diff --git a/src/cpp/ripple/SerializedLedger.cpp b/src/cpp/ripple/SerializedLedger.cpp index 8f07ec715..b4285dd87 100644 --- a/src/cpp/ripple/SerializedLedger.cpp +++ b/src/cpp/ripple/SerializedLedger.cpp @@ -51,7 +51,7 @@ SerializedLedgerEntry::SerializedLedgerEntry(LedgerEntryType type, const uint256 SerializedLedgerEntry::pointer SerializedLedgerEntry::getMutable() const { - SerializedLedgerEntry::pointer ret = boost::make_shared(boost::ref(*this)); + SerializedLedgerEntry::pointer ret = boost::make_shared(boost::cref(*this)); ret->mMutable = true; return ret; }