I'm having an issue with VisualStudio c++ compiler. While making a struct:
struct element{
element* next=NULL;
element* prev=NULL;
char value;
};
the compiler shows an error
main.cpp(21) : error C2864: 'element::next' : only static const integral data members can be initialized within a class
main.cpp(22) : error C2864: 'element::prev' : only static const integral data members can be initialized within a class
On LLVM everything runs fine. How can I fix the issue?