12 Feb
2018
12 Feb
'18
7:23 p.m.
-----Original Message----- From: Boost [mailto:boost-bounces@lists.boost.org] On Behalf Of Peter Dimov via Boost Sent: Montag, 12. Februar 2018 20:13 Subject: [boost] [system] virtual ~error_category
Can anyone think of a case in which error_category needs the virtual destructor?
I don't know of any reason, but I'm also not really proficient in Boost.System. I would like to suggest to make the dtor protected though if you make it non-virtual. That would lessen the chance of something going wrong. E.g. user-code may contain strange code constructing and destructing error categories for whatever reason. (Of course the dtors of all pre-defined non-final categories should then be made non-virtual protected too.) Regards, Paul