Opened 13 years ago

Closed 13 years ago

#3382 closed Bugs (fixed)

Non-virtual destructor in exception_ptr_base

Reported by: rbock@… 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)

comment:1 by Steven Watanabe, 13 years ago

This appears to be a spurious warning. exception_ptr_base is an implementation detail and the library never deletes through a pointer to one.

in reply to:  1 comment:2 by rbock@…, 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 Emil Dotchevski, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.