Use boost::void_t

fix #905
This commit is contained in:
Vinnie Falco
2018-04-24 15:14:15 -07:00
parent 14392d7f52
commit c5d4f8eede
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
Version 169:
* Use buffers_to_string in tests
* Use boost::void_t
--------------------------------------------------------------------------------

View File

@ -59,8 +59,10 @@ max_alignof()
}
// (since C++17)
template<class... Ts> struct make_void { using type = void; };
template<class... Ts> using void_t = typename make_void<Ts...>::type;
template<class... Ts>
using make_void = boost::make_void<Ts...>;
template<class... Ts>
using void_t = boost::void_t<Ts...>;
// (since C++11) missing from g++4.8
template<std::size_t Len, class... Ts>