Namespaces
Variants
Actions

Talk:cpp/iterator/incrementable

From cppreference.com

template<typename T> struct bar;

template <typename T, typename A> struct bar< typename std::list<T, A>::iterator >;

Why I'm getting an error: template parameters not deductible in partial specialization? Is it a flaw of gcc or c++ standard? I can write specialization for list iterator in this way: template<typename T> struct bar< std::_List_iterator<T> >;, but its not clean code. Sokrat (talk) 01:34, 27 July 2023 (PDT)

close