mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 03:57:36 +02:00
Suppress undefined inline function warning.
This commit is contained in:
@ -36,6 +36,7 @@
|
||||
#include <boost/core/enable_if.hpp>
|
||||
#include <boost/mpl/int.hpp>
|
||||
#include <boost/mpl/bool.hpp>
|
||||
#include <boost/type_traits/declval.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include <boost/type_traits/is_convertible.hpp>
|
||||
#include <boost/type_traits/remove_cv.hpp>
|
||||
@ -272,7 +273,7 @@ namespace boost { namespace fusion
|
||||
|
||||
template <std::size_t N, typename U>
|
||||
static BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
U value_at_impl(store<N, U>*);
|
||||
U value_at_impl(store<N, U>*) { return boost::declval<U>(); }
|
||||
};
|
||||
|
||||
template <typename V, typename... T>
|
||||
|
@ -17,6 +17,9 @@
|
||||
#include <boost/fusion/algorithm/iteration/fold.hpp>
|
||||
#include <boost/type_traits/remove_reference.hpp>
|
||||
#include <boost/type_traits/is_convertible.hpp>
|
||||
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
|
||||
#include <boost/type_traits/declval.hpp>
|
||||
#endif
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
@ -61,7 +64,10 @@ namespace boost { namespace fusion
|
||||
template<typename StrictestSoFar, typename Next>
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
typename result<strictest_traversal_impl(StrictestSoFar, Next)>::type
|
||||
operator()(StrictestSoFar&&, Next&&) const;
|
||||
operator()(StrictestSoFar&&, Next&&) const
|
||||
{
|
||||
return boost::declval<typename result<strictest_traversal_impl(StrictestSoFar, Next)>::type>();
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user