Home » Community » Newbie corner » Error: use of deleted function ...
Re: Error: use of deleted function ... [message #49209 is a reply to message #49208] |
Sun, 07 January 2018 20:42   |
 |
Klugier
Messages: 1102 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
Of course it should be:
Relazione &Clear() { format = {}; return *this;}
Please read what "{}" means in c++11 if you are not familiar with this notation.
Declaring variable and picking it seems like over engineering here. We want simply reset variable to it's default state.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 07 January 2018 20:44] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Jul 18 13:42:23 CEST 2025
Total time taken to generate the page: 0.04278 seconds
|