Mercurial > code
changeset 300:2935e07ddb88
Pack: little cosmetic changes
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 15 Nov 2014 13:13:18 +0100 |
parents | 24085fae3162 |
children | 4e17193db141 c019f194475a |
files | C++/Pack.h |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/C++/Pack.h Sat Nov 15 13:11:38 2014 +0100 +++ b/C++/Pack.h Sat Nov 15 13:13:18 2014 +0100 @@ -39,16 +39,15 @@ class Pack { private: template <typename T> - struct IsContainer - { + struct IsContainer { using Yes = char [1]; using No = char [2]; template <typename U> - static Yes &test(typename U::value_type *); + static constexpr Yes &test(typename U::value_type *); template <typename U> - static No &test(...); + static constexpr No &test(...); static constexpr const bool value = sizeof (test<T>(0)) == sizeof (Yes); }; @@ -95,7 +94,7 @@ * * The specialization must have the following function: * - * static constexpr void convert(T &value) noexcept + * static void convert(T &value) noexcept */ struct Convertible { static constexpr const bool convertible{true};