Boost logo

Boost :

Subject: [boost] noexcept(true) for ~noncopyable?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2014-11-18 10:56:30


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)’

https://svn.boost.org/trac/boost/ticket/10698

-- 
Olaf

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk