diff options
Diffstat (limited to 'boost/fusion/tuple/tuple_tie.hpp')
-rw-r--r-- | boost/fusion/tuple/tuple_tie.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/boost/fusion/tuple/tuple_tie.hpp b/boost/fusion/tuple/tuple_tie.hpp index 9202807048..a07dc0a43e 100644 --- a/boost/fusion/tuple/tuple_tie.hpp +++ b/boost/fusion/tuple/tuple_tie.hpp @@ -13,7 +13,26 @@ /////////////////////////////////////////////////////////////////////////////// // With no variadics, we will use the C++03 version /////////////////////////////////////////////////////////////////////////////// +#if !defined(BOOST_FUSION_HAS_VARIADIC_TUPLE) # 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...); + } +}} + +#endif #endif |