diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-04-27 18:10:48 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-04-27 18:10:48 +0200 |
commit | 4b829ece84c6dbaa4d89bf4fe6feebd4236b31d1 (patch) | |
tree | fc1f0ea5540cdfa584201507a1fcf3caf7be6ed6 /sigc++/tuple-utils/tuple_start.h | |
parent | ef8435a8c8694283bbf905b8e53a83bf2144b751 (diff) | |
download | sigc++-4b829ece84c6dbaa4d89bf4fe6feebd4236b31d1.tar.gz |
Fix some comments
Diffstat (limited to 'sigc++/tuple-utils/tuple_start.h')
-rw-r--r-- | sigc++/tuple-utils/tuple_start.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sigc++/tuple-utils/tuple_start.h b/sigc++/tuple-utils/tuple_start.h index 6c83030..c75fda9 100644 --- a/sigc++/tuple-utils/tuple_start.h +++ b/sigc++/tuple-utils/tuple_start.h @@ -59,7 +59,7 @@ struct tuple_start_impl<T, std::index_sequence<I...>> { constexpr auto size = std::tuple_size<std::decay_t<T>>::value; constexpr auto len = sizeof...(I); - static_assert(len <= size, "The tuple size must be less than or equal to the length."); + static_assert(len <= size, "The tuple size must be greater than or equal to the length."); using start = typename tuple_type_start<std::decay_t<T>, len>::type; return start(std::get<I>(std::forward<T>(t))...); @@ -77,7 +77,7 @@ tuple_start(T&& t) { // We use std::decay_t<> because tuple_size is not defined for references. constexpr auto size = std::tuple_size<std::decay_t<T>>::value; - static_assert(len <= size, "The tuple size must be less than or equal to the length."); + static_assert(len <= size, "The tuple size must be greater than or equal to the length."); return detail::tuple_start_impl<T, std::make_index_sequence<len>>::tuple_start( std::forward<T>(t)); |