Files

39 lines
1.2 KiB
C++
Raw Permalink Normal View History

2006-08-16 16:50:52 +00:00
/*=============================================================================
2015-06-17 01:40:45 +09:00
Copyright (c) 2014 Kohei Takahashi
2006-08-16 16:50:52 +00:00
Distributed under the Boost Software License, Version 1.0. (See accompanying
2007-03-02 10:44:14 +00:00
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
2006-08-16 16:50:52 +00:00
==============================================================================*/
2015-06-17 01:40:45 +09:00
#ifndef FUSION_TUPLE_TIE_14122014_0115
#define FUSION_TUPLE_TIE_14122014_0115
2006-08-16 16:50:52 +00:00
2015-06-17 01:40:45 +09:00
#include <boost/fusion/support/config.hpp>
#include <boost/fusion/tuple/tuple_fwd.hpp>
2006-08-16 16:50:52 +00:00
///////////////////////////////////////////////////////////////////////////////
2015-06-17 01:40:45 +09:00
// With no variadics, we will use the C++03 version
2006-08-16 16:50:52 +00:00
///////////////////////////////////////////////////////////////////////////////
#if !defined(BOOST_FUSION_HAS_VARIADIC_TUPLE)
2015-06-17 01:40:45 +09:00
# include <boost/fusion/tuple/detail/tuple_tie.hpp>
#else
///////////////////////////////////////////////////////////////////////////////
// C++11 interface
///////////////////////////////////////////////////////////////////////////////
#include <boost/fusion/tuple/tuple.hpp>
namespace boost { namespace fusion
{
template <typename ...T>
BOOST_FUSION_GPU_ENABLED
inline tuple<T&...>
tie(T&... arg)
{
return tuple<T&...>(arg...);
}
}}
2006-08-16 16:50:52 +00:00
2015-06-17 01:40:45 +09:00
#endif
#endif
2006-08-16 16:50:52 +00:00