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 » Developing U++ » U++ Developers corner » Error C2280 with MSC15 and Uniq (Error C2280 with MSC15 and Uniq (attempting to reference a deleted function))
Error C2280 with MSC15 and Uniq [message #47033] Wed, 16 November 2016 03:39 Go to previous message
awksed is currently offline  awksed
Messages: 61
Registered: April 2012
Member
I'm getting error C2280 (attempting to reference a deleted function) with MSC15 (pick() usually fixes most of these)
but there is a line in Uniq that is causing problems: PostCallback(callback1(WhenInstance, v));.

MSC15x64 compiler -Od switch

(no problem with MSC10x64)

Snippets:

class Uniq
{
// callback called when another app instance is run
//
Callback1<Vector<String> const &> WhenInstance;
}

bool Uniq::SendCmdLine(void)
{
// ok, we're (finally...) connected to client
// just get command line from him

Vector<String> v;

int count = ScanInt(ReadFileString(pipe));

for(int i = 0; i < count; i++)
v.Add(ReadFileString(pipe));

// This causes the following error:
// C:\upp\bazaar\Uniq\Windows.cpp(109): error C2280: 'Upp::Vector<Upp::String>::Vector(const Upp::Vector<Upp::String> &)': attempting to reference a deleted function
//
PostCallback(callback1(WhenInstance, v));


Is there a compiler switch to stop generated functions from being deleted or what changes need to be made the the code?

Thanks,

Jan
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: lambda troubles...
Next Topic: Are there any plans to convert U++ comments to format as DOXYGEN / JAVADOC?
Goto Forum:
  


Current Time: Sun Apr 28 13:54:53 CEST 2024

Total time taken to generate the page: 0.04210 seconds