Home » Developing U++ » U++ Developers corner » C2280
C2280 [message #47586] |
Thu, 02 February 2017 12:49 |
NilaT
Messages: 70 Registered: November 2011 Location: Austria
|
Member |
|
|
Hello everyone,
I have another, very urgent question.
I want to compile my project with 2015 sources and MSC15...
Some errors here, some warnings there, not worth be mentioned.
But, one error is very annoying and I can't get rid of it.
It's C2280...
test.cpp (191): error C2280: "Upp::Array<TEST> &Upp::Array<TEST>::operator =(const Upp::Array<TEST> &)" : Es wurde versucht, auf eine gelöschte Funktion zu verweisen
I already found this:
http://stackoverflow.com/questions/31264984/c-compiler-error -c2280-attempting-to-reference-a-deleted-function-in-visual
which says the Array class needs a "= default" constructor and copy constructor or something.
I tried a few things but nothing worked.
Please help.
Very urgent!
Any help appreciated.
Thanks in advance.
PS: Please help me with my other Problem (RPC_METHOD) as well, thank you.
PPS: My exact version of Upp is 10249
//edit: When I change
void operator=(Array&& v) { if(this != &v) { Free(); vector = pick(v.vector); } }
to
Array& operator=(const Array&) = default;
in Vcont.h, the error won't occur but I don't think this is the right solution...
And then the same error occurs for Upp::XmlNode...
Very annoying...
[Updated on: Thu, 02 February 2017 13:01] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Mar 28 14:33:05 CET 2024
Total time taken to generate the page: 0.01759 seconds
|