Author
anonymous
over 8 years ago
Language
Compiler
Options
Author
anonymous
over 8 years ago
$ prog.cc:20:7: error: no matching member function for call to 'foo'
b.foo<int>(int{});
~~^~~~~~~~
prog.cc:15:10: note: candidate template ignored: requirement '!std::is_integral_v<int>' was not satisfied [with U = int]
void foo(alias<std::enable_if_t<!std::is_integral_v<U>>, T>) { std::cout << "B::foo invoked" << std::endl; }
^
1 error generated.
Exit Code:
1