tuple: `ignore' should be noexcept

This commit is contained in:
Danny Robson 2017-09-08 17:03:22 +10:00
parent edfe4b73bb
commit ca3851c4de

View File

@ -176,16 +176,14 @@ namespace util::tuple {
/// debug/release/whatever builds. so it is safe to use to guarantee /// debug/release/whatever builds. so it is safe to use to guarantee
/// parameter evaluation. /// parameter evaluation.
inline void inline void
ignore (void) ignore (void) noexcept
{ ; } { ; }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
template <typename T, typename ...Args> template <typename T, typename ...Args>
void void
ignore (T, Args ...args) ignore (T, const Args&...) noexcept
{ { ; }
ignore (std::forward<Args> (args)...);
};
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////