From c5d4f8eedeb81659b685c1b2128767001e5a9f1f Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Tue, 24 Apr 2018 15:14:15 -0700 Subject: [PATCH] Use boost::void_t fix #905 --- CHANGELOG.md | 1 + include/boost/beast/core/detail/type_traits.hpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 111b927b..65990d50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ Version 169: * Use buffers_to_string in tests +* Use boost::void_t -------------------------------------------------------------------------------- diff --git a/include/boost/beast/core/detail/type_traits.hpp b/include/boost/beast/core/detail/type_traits.hpp index 3692b622..140d1750 100644 --- a/include/boost/beast/core/detail/type_traits.hpp +++ b/include/boost/beast/core/detail/type_traits.hpp @@ -59,8 +59,10 @@ max_alignof() } // (since C++17) -template struct make_void { using type = void; }; -template using void_t = typename make_void::type; +template +using make_void = boost::make_void; +template +using void_t = boost::void_t; // (since C++11) missing from g++4.8 template