mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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
@@ -182,12 +182,6 @@ public:
|
||||
STPathSet(SField const& n);
|
||||
STPathSet(SerialIter& sit, SField const& name);
|
||||
|
||||
STBase*
|
||||
copy(std::size_t n, void* buf) const override;
|
||||
|
||||
STBase*
|
||||
move(std::size_t n, void* buf) override;
|
||||
|
||||
void
|
||||
add(Serializer& s) const override;
|
||||
|
||||
@@ -230,6 +224,14 @@ public:
|
||||
template <typename... Args>
|
||||
void
|
||||
emplace_back(Args&&... args);
|
||||
|
||||
private:
|
||||
STBase*
|
||||
copy(std::size_t n, void* buf) const override;
|
||||
STBase*
|
||||
move(std::size_t n, void* buf) override;
|
||||
|
||||
friend class detail::STVar;
|
||||
};
|
||||
|
||||
// ------------ STPathElement ------------
|
||||
|
||||
Reference in New Issue
Block a user