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.m...@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 _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development