mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Restrict access to the virtual functions move and copy
* These are meant to be used by detail::STVar only and are otherwise error-prone to call.
This commit is contained in:
committed by
Nik Bougalis
parent
74e6ed1af3
commit
0c13676d5f
@@ -94,12 +94,6 @@ public:
|
||||
NodeID const& nodeID,
|
||||
F&& f);
|
||||
|
||||
STBase*
|
||||
copy(std::size_t n, void* buf) const override;
|
||||
|
||||
STBase*
|
||||
move(std::size_t n, void* buf) override;
|
||||
|
||||
// Hash of the validated ledger
|
||||
uint256
|
||||
getLedgerHash() const;
|
||||
@@ -150,6 +144,13 @@ public:
|
||||
private:
|
||||
static SOTemplate const&
|
||||
validationFormat();
|
||||
|
||||
STBase*
|
||||
copy(std::size_t n, void* buf) const override;
|
||||
STBase*
|
||||
move(std::size_t n, void* buf) override;
|
||||
|
||||
friend class detail::STVar;
|
||||
};
|
||||
|
||||
template <class LookupNodeID>
|
||||
|
||||
Reference in New Issue
Block a user