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 » U++ Library support » U++ Core » Vector< Vector<int>> issue
Vector< Vector<int>> issue [message #47270] Mon, 02 January 2017 14:46 Go to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
Hello and Happy New Year!

I downloaded today the latest Upp 10620, MSC15. I tried to compile a code that worked with the old distro I currently use.
In a class I have

Vector< Vector<int> > columnWidths;

and the compiler complain when I try to use

columnWidths.Pop();

with error:
c:\upp\uppsrc\core\Vcont.h (150): error C2280: 'Upp::Vector<int>::Vector(const Upp::Vector<int> &)': tentativo di fare riferimento a una funzione eliminata

Does anybody know how to fix it?
Thanks,
Luigi

[Updated on: Mon, 02 January 2017 14:50]

Report message to a moderator

Re: Vector< Vector<int>> issue [message #47276 is a reply to message #47270] Mon, 02 January 2017 16:48 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
forlano wrote on Mon, 02 January 2017 14:46
Hello and Happy New Year!

I downloaded today the latest Upp 10620, MSC15. I tried to compile a code that worked with the old distro I currently use.
In a class I have

Vector< Vector<int> > columnWidths;

and the compiler complain when I try to use

columnWidths.Pop();


The above code is not mine. I tried this

columnWidths[ columnWidths.GetCount()-1 ].Pop();

and works.
However I wonder if it does the same of the previous Rolling Eyes

columnWidths.Pop();

Luigi

Re: Vector< Vector<int>> issue [message #47286 is a reply to message #47276] Tue, 03 January 2017 09:33 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
It is not the same.

Please use Drop instead of Pop...

Mirek
Re: Vector< Vector<int>> issue [message #47291 is a reply to message #47286] Tue, 03 January 2017 10:32 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
On the second thought, U++ is now changed to allow Pop in this situation...
Re: Vector< Vector<int>> issue [message #47304 is a reply to message #47291] Tue, 03 January 2017 13:23 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
mirek wrote on Tue, 03 January 2017 10:32
On the second thought, U++ is now changed to allow Pop in this situation...


Hi Mirek,

sorry but I have not understood. If I download the latest nightly build the original code will work?
Thanks,
Luigi
Re: Vector< Vector<int>> issue [message #47310 is a reply to message #47304] Tue, 03 January 2017 16:32 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes, or use Drop instead of Pop.

Of course, nightly from upcoming nigth, so available tomorrow (Jan 3)

[Updated on: Tue, 03 January 2017 16:33]

Report message to a moderator

Previous Topic: High resolution TimeStop code
Next Topic: Small bug in DeleteFolderDeep
Goto Forum:
  


Current Time: Thu Mar 28 22:56:42 CET 2024

Total time taken to generate the page: 0.01227 seconds