18 Nov
2014
18 Nov
'14
4 p.m.
On Tue, Nov 18, 2014 at 4:59 PM, Andrey Semashev
On Tue, Nov 18, 2014 at 6:56 PM, Olaf van der Spek
wrote: Shouldn't ~noncopyable be noexcept?
I'm seeing this error:
class Cconnection : public Cclient, boost::noncopyable
connection.h:5:7: error: looser throw specifier for ‘virtual Cconnection::~Cconnection()’ In file included from connection.h:3:0, from connection.cpp:2: client.h:10:10: error: overriding ‘virtual Cclient::~Cclient() noexcept (true)’
Destructors are implicitly noexcept.
So it's a compiler bug? -- Olaf