Open correaa opened 10 months ago
The compiler can't deduce return of operator auto() when the result is a template:
operator auto()
#include <vector> template<class T> struct A { std::vector<T> v; operator auto() const {return v;} // operator std::vector<T>() const {return v;} }; int main() { A<double> a; std::vector<double> d = a; }
https://godbolt.org/z/77Mr95ffv
The compiler can't deduce return of
operator auto()
when the result is a template:https://godbolt.org/z/77Mr95ffv