Use boost::declval instead of std::declval

This commit is contained in:
Daisuke Sakurai
2018-05-18 15:08:25 +02:00
parent a3114e9f79
commit dec6869a3f

View File

@ -9,6 +9,7 @@
#ifndef BOOST_TT_IS_COMPLETE_HPP_INCLUDED
#define BOOST_TT_IS_COMPLETE_HPP_INCLUDED
#include <boost/type_traits/declval.hpp>
#include <boost/type_traits/integral_constant.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <boost/type_traits/is_function.hpp>
@ -59,7 +60,7 @@ namespace boost {
template <class T>
struct is_complete_imp
{
template <class U, class = decltype(sizeof(std::declval< U >())) >
template <class U, class = decltype(sizeof(boost::declval< U >())) >
static type_traits::yes_type check(U*);
template <class U>