diff options
author | johannst <johannst@users.noreply.github.com> | 2023-04-12 20:57:45 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2023-04-12 20:57:45 +0000 |
commit | 4b3a334cf553b9f0b7f831538cb4d23fbdb0594f (patch) | |
tree | 3a8e4df94497b437656454bc29e522b56f9765cb /development/c++/concepts-11.cc | |
parent | 3f1d25c3e62f91f2555f0649c7c71f3b730717be (diff) | |
download | notes-4b3a334cf553b9f0b7f831538cb4d23fbdb0594f.tar.gz notes-4b3a334cf553b9f0b7f831538cb4d23fbdb0594f.zip |
deploy: d6deac54dd372c946942637636846893694ce521
Diffstat (limited to 'development/c++/concepts-11.cc')
-rw-r--r-- | development/c++/concepts-11.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/development/c++/concepts-11.cc b/development/c++/concepts-11.cc index 888ff4d..cec8716 100644 --- a/development/c++/concepts-11.cc +++ b/development/c++/concepts-11.cc @@ -32,8 +32,7 @@ struct is_entry { template<typename TT> using val = decltype(std::declval<TT>().val()); - static constexpr bool value = is_valid_v<T, init> && - is_valid_with_ret_v<T, int, tag> && + static constexpr bool value = is_valid_v<T, init> && is_valid_with_ret_v<T, int, tag> && is_valid_with_ret_v<T, typename T::Type, val>; }; |