Author
anonymous
almost 5 years ago
Language
C++
Compiler
zapcc 2017.08
Options
Warnings
Don't Use Boost
C++1z(GNU)
no pedantic
Author
anonymous
almost 5 years ago
$ zapcc++ prog.cc -Wall -Wextra -std=gnu++1z
/home/jail/prog.cc:46:8: error: class template partial specialization contains a template parameter that cannot be deduced; this partial specialization will never be used [-Wunusable-partial-specialization]
struct iterator_traits<typename range_num<T>::num_iterator> {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jail/prog.cc:45:19: note: non-deducible template parameter 'T'
template<typename T>
^
In file included from /home/jail/prog.cc:2:
In file included from /opt/wandbox/clang-head/include/c++/v1/iostream:37:
In file included from /opt/wandbox/clang-head/include/c++/v1/ios:215:
In file included from /opt/wandbox/clang-head/include/c++/v1/__locale:14:
In file included from /opt/wandbox/clang-head/include/c++/v1/string:506:
In file included from /opt/wandbox/clang-head/include/c++/v1/string_view:175:
In file included from /opt/wandbox/clang-head/include/c++/v1/__string:57:
/opt/wandbox/clang-head/include/c++/v1/algorithm:2742:66: error: no type named 'value_type' in 'std::__1::iterator_traits<range_num<int>::num_iterator>'
__less<typename iterator_traits<_ForwardIterator>::value_type>());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/jail/prog.cc:68:33: note: in instantiation of function template specialization 'std::__1::minmax_element<range_num<int>::num_iterator>' requested here
auto [min_it, max_it] (std::minmax_element(std::begin(int_range), std::end(int_range)));
^
2 errors generated.
Exit Code:
1