Merge pull request #550 from asmaloney/fix-weak-vtable-warning

Fix weak vtable warning regarding xml_writer
This commit is contained in:
Arseny Kapoulkine 2023-04-21 15:59:19 -07:00 committed by GitHub
commit 8d18de8f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -5111,6 +5111,10 @@ PUGI_IMPL_NS_END
namespace pugi
{
PUGI_IMPL_FN xml_writer::~xml_writer()
{
}
PUGI_IMPL_FN xml_writer_file::xml_writer_file(void* file_): file(file_)
{
}

View File

@ -324,7 +324,7 @@ namespace pugi
class PUGIXML_CLASS xml_writer
{
public:
virtual ~xml_writer() {}
virtual ~xml_writer();
// Write memory chunk into stream/file/whatever
virtual void write(const void* data, size_t size) = 0;