
please wait
|
|
|
|
|
|
C:\Users\Michael\foo> cl /EHsc /W4 /Ox /std:c++17 a.cpp Microsoft (R) C/C++ Optimizing Compiler Version 19.21.27702.2 for x64 Copyright (C) Microsoft Corporation. All rights reserved. a.cpp a.cpp(68): error C2672: 'do_something': no matching overloaded function found a.cpp(68): error C2893: Failed to specialize function template 'std::enable_if<is_iterable<T>::value,void>::type do_something(const Container &)' a.cpp(68): note: With the following template arguments: a.cpp(68): note: 'Container=int' a.cpp(71): error C2672: 'do_something': no matching overloaded function found a.cpp(71): error C2893: Failed to specialize function template 'std::enable_if<is_iterable<T>::value,void>::type do_something(const Container &)' a.cpp(71): note: With the following template arguments: a.cpp(71): note: 'Container=std::pair<double,int>' |
~/baz% clang++ -Wall -Wextra -pedantic-errors -O3 -std=c++17 a.cpp a.cpp:68:3: error: no matching function for call to 'do_something' do_something( n ); ^~~~~~~~~~~~ a.cpp:56:1: note: candidate template ignored: requirement 'is_iterable<int>::value' was not satisfied [with Container = int] do_something( const Container & xs ) ^ a.cpp:71:3: error: no matching function for call to 'do_something' do_something( p ); ^~~~~~~~~~~~ a.cpp:56:1: note: candidate template ignored: requirement 'is_iterable<std::pair<double, int> >::value' was not satisfied [with Container = std::pair<double, int>] do_something( const Container & xs ) ^ 2 errors generated. |
|
|