Changes in libcfa/src/virtual_dtor.hfa [a1f0cb6:1e940de0]
- File:
-
- 1 edited
-
libcfa/src/virtual_dtor.hfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/virtual_dtor.hfa
ra1f0cb6 r1e940de0 1 #pragma once 2 3 // inline virtual_dtor to have a virtual dtor. 1 // inline this structure to have a virtual dtor. 4 2 // when using this, delete() is also virtual and will be called on the right address 5 3 // using free() directly on polymorphic types may result in unaligned memory deallocation … … 10 8 // given struct A { inline virtual_dtor; } and struct B { inline virtual_dtor; } 11 9 // struct C { inline A; inline B; } will result in undefined behaviour 10 12 11 struct virtual_dtor { 13 12 void (*__virtual_dtor_ptr)(virtual_dtor &);
Note:
See TracChangeset
for help on using the changeset viewer.