SyntaxFix
Write A Post
Hire A Developer
Questions
The current standard only allows such initialization for static constant integral types. So you need to do as AndreyT explained. However, that will be available in the next standard through the new member initialization syntax.