I'm getting a compilation error when defining the deduction guide below, but only when compiling with MSVC. With both GCC and Clang the compilation passes.
The Error I get with MSVC is "error C2955: 'A': use of class template requires template argument list"
Minimal reproduction example:
template <typename T>
struct A {
T value;
};
template <typename T>
A(T) -> A<T>;
int main() {
return 0;
}
The code and compilation results with all three compilers can be found at this godbolt link: https://godbolt.org/z/611hMKoYo
Is this a bug in MSVC or am I defining the deduction guide incorrectly and are GCC & Clang wrong?