Category : implicit

Ok so i have the following code https://godbolt.org/z/GP9PrE template<typename T> struct universalWrapper{ universalWrapper(T in): t(in) {} T t; }; struct TypeHolder{ using MyType = int; }; template<typename T = typename TypeHolder::MyType> void myFunc(universalWrapper<T> m) {} int main() { myFunc(10); } And compiling it with C++14 gives the following error (clang in this case): error: no ..

Read more