Hi I'm a beginner C++ developer so sorry in advance if my question could be not very "intelligent". I post the code so it's easier to understand the problem.
Try getting rid of the '=' sign and instead just initialize it. Otherwise you'll have to include the initializer list header and overload operator= to perform the initialization properly.
Thanks for your reply, but sorry I don't understand how I could do what do you told me....What does mean include the initializer list header and overload operator= to perform the initialization properly?