Opened 13 years ago
Closed 13 years ago
#3382 closed Bugs (fixed)
Non-virtual destructor in exception_ptr_base
Reported by: | Owned by: | Emil Dotchevski | |
---|---|---|---|
Milestone: | Boost 1.41.0 | Component: | exception |
Version: | Boost 1.40.0 | Severity: | Problem |
Keywords: | virtual functions, non-virtual destructor, exception | Cc: |
Description
Hi,
with g++ 4.2.4 and -Wnon-virtual-dtor, I get
boost/exception/detail/exception_ptr_base.hpp:17: warning: ‘class boost::exception_detail::exception_ptr_base’ has virtual functions but non-virtual destructor
Regards,
Roland
Change History (3)
follow-up: 2 comment:1 by , 13 years ago
comment:2 by , 13 years ago
Replying to steven_watanabe:
This appears to be a spurious warning. exception_ptr_base is an implementation detail and the library never deletes through a pointer to one.
Maybe its spurious, but it is a nuisance... and easily to be fixed by adding a virtual destructor, isn't it?
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This appears to be a spurious warning. exception_ptr_base is an implementation detail and the library never deletes through a pointer to one.