Skip to content
Snippets Groups Projects
Commit 8b392bbe authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix template template param deduction in gcc7.1

parent 9177608f
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -32,8 +32,8 @@ bool excludes(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2)
return excludes(first1, last1, first2, last2, std::less<decltype(*first1)>());
}
 
template<class ResType, class InType, template < typename ... > class ContainerType, class Callback >
ContainerType<ResType> transform(const ContainerType<InType> & in, Callback transform) {
template < class ResType, class InType, typename ... Ts, template < typename ... > class ContainerType, class Callback >
ContainerType < ResType > transform(const ContainerType < InType, Ts ... > & in, Callback transform ) {
ContainerType<ResType> res;
std::transform ( in.begin ( ), in.end ( ), std::inserter ( res, res.begin ( ) ), transform );
return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment