fix "hides overloaded virtual function" warning

This commit is contained in:
Michael Davidsaver
2017-06-14 13:22:06 +02:00
parent a72451cdbe
commit 6cf9fa2208
2 changed files with 10 additions and 0 deletions

View File

@@ -98,6 +98,14 @@ PVString::PVString(ScalarConstPtr const & scalar)
storage.maxLength = 0;
}
/* mixing overrides (virtual functions) and overloads (different argument lists) is fun...
* we override all overloads to avoid the "hides overloaded virtual function" warning from clang.
* In this case we don't need/want to, so just delegate to the base class.
*/
void PVString::serialize(ByteBuffer *pbuffer,
SerializableControl *pflusher) const
{PVScalarValue<std::string>::serialize(pbuffer, pflusher);}
void PVString::serialize(ByteBuffer *pbuffer,
SerializableControl *pflusher, size_t offset, size_t count) const
{