Re:Add a const here, delete a const there
by revelation on Monday January 09, 2017 @07:38AM
(#13355889)
I'm also with the VC team here, a const but not static instance field? Their stance seems correct that that should be initialized - in a constructor.
[ Parent
| on HN ]
Re:Add a const here, delete a const there
by brucedawson on Tuesday January 10, 2017 @01:28AM
(#13363096)
VC++ 2010 used to think that too and would generate warning C4610 for const non-static members. However that warning was wrong, and was changed to not fire in that case. See this link:
https://connect.microsoft.com/VisualStudio/feedback/details/...