Visual Studio 2019 C++ not recognizing template friends

Bradley Bell 1 Reputation point
2020-08-20T15:41:58.507+00:00

I have an example C++ program that works in Visual Studio 2019 with a plain version of class1 but not with a template version of class1. Both versions work in gcc.

The details of the example can be found at
https://stackoverflow.com/questions/63288453/visual-studio-2019-c-not-recognizing-template-friends

I am hoping that someone on this forum can tell me how to get Visual Studio to work for this case.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,553 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
    2020-08-21T02:48:07.46+00:00

    As far as I'm concerned, It seems a issue, I suggest you could post the issue to the Developer Community for better help.