Change all decay to remove_cvref.

This commit is contained in:
hazby2002
2023-12-29 17:05:16 +08:00
parent 38783b8907
commit 2d45ddfdc8
62 changed files with 409 additions and 394 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ namespace xml {
// lax rules when things are required.
template <class T>
consteval bool is_required_for_xml() {
using Type = std::decay_t<std::remove_pointer_t<T>>;
using Type = std::remove_cvref_t<std::remove_pointer_t<T>>;
if constexpr (internal::has_reflection_type_v<T>) {
return is_required_for_xml<typename T::ReflectionType>();
} else {