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 » Issues using 2015.2 version
Re: Issues using 2015.2 version [message #45925 is a reply to message #45895] Tue, 26 January 2016 23:32 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Mindtraveller wrote on Thu, 21 January 2016 20:16

It's simple: your new compiler is C++11 compiler. And thus U++ is compiled in C++11 mode. It means, among other things, that you must now specify whether you use Pick or Clone operation.
For example, this code is valid for U++ in 'old' mode:
Vector<int> a,b; a = b;

But it fails to compile in U++11 mode because you should use pick/clone and call it explicitly:
Vector<int> a,b; a = pick(b);

Of course, you may use clone() only if your object supports it.
Please refer to the updated Help documentation for details.


Hello,

Very interesting. I am getting a lot of similar errors (C2280) even where old assignment between Vector<> is not apparently involved. For example when Vector<int> is passed in a function. Moreover in my case the pick/clone trick does not work.
Anyway I would like to come back to the old U++ good way and get my code compiled correctly. Does anybody know how to set VC2015 in order to avoid the C2280 error?

Thanks,
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Empty Template vs CtrlLib application with main window
Next Topic: Problem in example code
Goto Forum:
  


Current Time: Mon May 13 12:57:29 CEST 2024

Total time taken to generate the page: 0.01411 seconds