On Tuesday 10 November 2015 19:43:35 Olivier Goffart wrote: > Likewise, Marc is trying to use std::declval and type traits > in exception specification [https://codereview.qt-project.org/140132/]
declval is in use for exception specifications since at least 5.5 (in QPair). As for type_traits, please note that for many of them, there is no other way to get at the information (std::is_trivial*, std::is_polymorphic, even some std::is_nothrow_constructible, because a seemingly equivalent noexcep operator (say, noexcept(T(std::declval<T>()) also includes the dtor). I propose that whatever we decide here is checked for in machine-readable form in tst_compiler. Thanks, Marc -- Marc Mutz <marc.m...@kdab.com> | Senior Software Engineer KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company Tel: +49-30-521325470 KDAB - The Qt Experts _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development