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

Add virtual destructor to base class "Device"
pull/1092/head
Andrew Pardoe 8 years ago committed by GitHub
commit 0a6167e1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save