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 #49208 is a reply to message #49205] Sun, 07 January 2018 17:51 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1215
Registered: August 2007
Senior Contributor
Hello Matteo, and welcome!

Klugier has already proposed a solution, yet another solution and explanation is as follows:

The reason seems to be that the RelazioneFormat class (in C++11 and above) has a implicitly defined move constructor;

Solution is easy, use pick():

Relazione &Clear()			{ RelazioneFormat f; format = pick(f); return *this;}
                                                                      -------
                                                                         ^


It is all explained here:

http://en.cppreference.com/w/cpp/language/move_constructor


Best regards,
Oblivion


 
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 10:07:02 CEST 2025

Total time taken to generate the page: 0.04070 seconds