summaryrefslogtreecommitdiff
path: root/boost/beast/http/detail/type_traits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/http/detail/type_traits.hpp')
-rw-r--r--boost/beast/http/detail/type_traits.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/boost/beast/http/detail/type_traits.hpp b/boost/beast/http/detail/type_traits.hpp
index c9a06f9784..1d0c991826 100644
--- a/boost/beast/http/detail/type_traits.hpp
+++ b/boost/beast/http/detail/type_traits.hpp
@@ -194,6 +194,22 @@ struct is_fields_helper : T
t10::value && t11::value && t12::value>;
};
+template<class T>
+using has_deprecated_body_writer =
+ std::integral_constant<bool,
+ std::is_constructible<typename T::writer,
+ message<true, T, detail::fields_model>&>::value &&
+ std::is_constructible<typename T::writer,
+ message<false, T, detail::fields_model>&>::value>;
+
+template<class T>
+using has_deprecated_body_reader =
+ std::integral_constant<bool,
+ std::is_constructible<typename T::reader,
+ message<true, T, detail::fields_model>&>::value &&
+ std::is_constructible<typename T::reader,
+ message<false, T, detail::fields_model>&>::value>;
+
} // detail
} // http
} // beast