1
0
Fork 0

mark overrides for template struct members

This commit is contained in:
Kevin Matz 2021-07-30 08:21:38 -04:00
parent 00d769c22e
commit 79502361fd
1 changed files with 3 additions and 3 deletions

View File

@ -143,16 +143,16 @@ struct Block : public pdu_data
std::shared_ptr<std::vector<std::shared_ptr<T>>> pdu
= std::shared_ptr<std::vector<std::shared_ptr<T>>>(
new std::vector<std::shared_ptr<T>>);
size_t streamSize() const {
size_t streamSize() const override {
size_t s = 0;
for (auto &child : *pdu)
s += child->streamSize();
return s;
}
void iStream(Stream s) { //!< you should call readBlock() directly.
void iStream(Stream s) override { //!< you should call readBlock() directly.
readBlock(s, nullptr);
};
void oStream(Stream s) const {
void oStream(Stream s) const override {
for ( const auto & child : *pdu )
child->oStream(s);
};