Skip to content

Commit ca23186

Browse files
committed
[Util] Support const, & in is_specialization
1 parent 169d4ad commit ca23186

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/mutable/util/concepts.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ struct is_specialization<Template<Args...>, Template> : std::true_type {};
122122

123123
}
124124

125+
/** Check whether \tparam T is a specialization of \tparam Template. Strips CV-qualifications of \tparam T for
126+
* convenient use, e.g. in conjunction with `decltype`. */
125127
template<typename T, template <typename...> class Template>
126-
concept is_specialization = detail::is_specialization<T, Template>::value;
128+
concept is_specialization = detail::is_specialization<std::remove_cvref_t<T>, Template>::value;
127129

128130

129131
/** Helper struct for parameter packs. Enables use of multiple parameter packs after another. */

0 commit comments

Comments
 (0)