Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions fasttuple.h
Original file line number Diff line number Diff line change
Expand Up @@ -2678,7 +2678,7 @@ namespace std
template<typename fieldType, typename ...types> FORCEINLINE constexpr auto get( CTuple<types...> &tuple ) { return tuple.template Get<fieldType>(); }
// Deduction guide for constructing a tuple
template<typename ...types>
std::tuple( CTuple<types...> const & ) -> std::tuple<types...>;
tuple( CTuple<types...> const & ) -> tuple<types...>;
}

template<typename ...types> class CCompatibleTuple;
Expand Down Expand Up @@ -5650,6 +5650,5 @@ namespace std
template<typename fieldType, typename ...types> FORCEINLINE constexpr auto get( CCompatibleTuple<types...> &tuple ) { return tuple.template Get<fieldType>(); }
// Deduction guide for constructing a tuple
template<typename ...types>
std::tuple( CCompatibleTuple<types...> const & ) -> std::tuple<types...>;
tuple( CCompatibleTuple<types...> const & ) -> tuple<types...>;
}

2 changes: 1 addition & 1 deletion tuplegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ void GenTuple( std::string const &className, bool bCompat )
PrintLn( "template<typename fieldType, typename ...types> FORCEINLINE ", s_sConstExpr, "auto get( ", className, "<types...> &tuple ) { return tuple.template Get<fieldType>(); }" );
PrintLn( "// Deduction guide for constructing a tuple" );
PrintLn( "template<typename ...types>" );
PrintLn( " std::tuple( ", className, "<types...> const & ) -> std::tuple<types...>;" );
PrintLn( " tuple( ", className, "<types...> const & ) -> tuple<types...>;" );


AdjustIndent( -1 );
Expand Down