Merge pull request #1066 from brenoguim/hotfix/add-virtual-destructor

Add virtual destructor to base class "Device"
This commit is contained in:
Andrew Pardoe 2017-11-27 11:18:23 -08:00 committed by GitHub
commit 0a6167e1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6530,6 +6530,7 @@ Such as on an ABI (link) boundary.
##### Example ##### Example
struct Device { struct Device {
virtual ~Device() = default;
virtual void write(span<const char> outbuf) = 0; virtual void write(span<const char> outbuf) = 0;
virtual void read(span<char> inbuf) = 0; virtual void read(span<char> inbuf) = 0;
}; };