| 29 | // verify that types are complete for increased safety |
| 30 | |
| 31 | template<class T> inline void checked_delete(T * x) BOOST_NOEXCEPT |
| 32 | { |
| 33 | // intentionally complex - simplification causes regressions |
| 34 | typedef char type_must_be_complete[ sizeof(T)? 1: -1 ]; |
| 35 | (void) sizeof(type_must_be_complete); |
| 36 | delete x; |
| 37 | } |
| 38 | |
| 39 | template<class T> inline void checked_array_delete(T * x) BOOST_NOEXCEPT |
| 40 | { |
no outgoing calls
no test coverage detected