[Development] Proposal: adding Q_DECL_NOEXCEPT to many methods

Marc Mutz marc.mutz at kdab.com
Tue Aug 7 09:46:18 CEST 2012


On Friday August 3 2012, Thiago Macieira wrote:
> On quinta-feira, 2 de agosto de 2012 23.57.58, Marc Mutz wrote:
> > noexcept(std::declval<Object>().f()) should work.
>
> error: invalid use of incomplete type ‘struct Object’

Of course the type needs to be complete. How would the compiler know anything 
about the exception specification of its functions if it wasn't?

You said that 'Object' in your case is the base class? So the type should be 
complete. Why isn't it?

/me confused

Thanks,
Marc

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions



More information about the Development mailing list