Files

39 lines
1.3 KiB
C++

/*=============================================================================
Copyright (c) 2014 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#ifndef ACTIV_BOOST_FUSION_TUPLE_TIE_14122014_0115
#define ACTIV_BOOST_FUSION_TUPLE_TIE_14122014_0115
#include <ActivBoost/fusion/support/config.hpp>
#include <ActivBoost/fusion/tuple/tuple_fwd.hpp>
///////////////////////////////////////////////////////////////////////////////
// With no variadics, we will use the C++03 version
///////////////////////////////////////////////////////////////////////////////
#if !defined(ACTIV_BOOST_FUSION_HAS_VARIADIC_TUPLE)
# include <ActivBoost/fusion/tuple/detail/tuple_tie.hpp>
#else
///////////////////////////////////////////////////////////////////////////////
// C++11 interface
///////////////////////////////////////////////////////////////////////////////
#include <ActivBoost/fusion/tuple/tuple.hpp>
namespace Boost { namespace fusion
{
template <typename ...T>
ACTIV_BOOST_FUSION_GPU_ENABLED
inline tuple<T&...>
tie(T&... arg)
{
return tuple<T&...>(arg...);
}
}}
#endif
#endif