Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Klugier is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Accessing Index structure elements
Next Topic: build methods
Goto Forum:
  


Current Time: Fri Jul 18 13:42:23 CEST 2025

Total time taken to generate the page: 0.04278 seconds