mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #1066 from brenoguim/hotfix/add-virtual-destructor
Add virtual destructor to base class "Device"
This commit is contained in:
commit
0a6167e1fc
|
@ -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…
Reference in New Issue
Block a user