News for hackers. Stuff that matters.
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.
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/...

Re:Add a const here, delete a const there by wfunction on Monday January 09, 2017 @07:46AM (#13355927)
Not sure why you replied to my comment (seems like an unrelated comment?), but anyway, this should work too; you shouldn't need a constructor:

  struct { const int x; } y = { 1 };