I have this code containing std::is_same_v
available with C++17. But I've stuck with C++14 due to toolchain limitation.
template<class T, class O = T>
using IteratorOnly = std::enable_if_t<
!std::is_same_v<typename std::iterator_traits<T>::value_type, void>, O
>;
How can I replace std::is_same_v
with std::is_same
? Is there any workaround to be able to compile the code with just C++14?