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 initialization
Vector initialization [message #54596] Wed, 19 August 2020 09:40 Go to next message
koldo is currently offline  koldo
Messages: 3196
Registered: August 2008
Senior Veteran
Now
Vector<bool> v(n, false); // Error. Calls to Vector(int n, const T& init)

but
Vector<bool> v;
v.SetCount(n, false);  // OK. Calls to void SetCount(int n, const T& init)

Could it be possible to modify Vector constructor to avoid this error?


Best regards
Iñaki
Re: Vector initialization [message #54600 is a reply to message #54596] Wed, 19 August 2020 10:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12716
Registered: November 2005
Ultimate Member
Fixed in trunk.
Re: Vector initialization [message #54604 is a reply to message #54600] Wed, 19 August 2020 14:29 Go to previous message
koldo is currently offline  koldo
Messages: 3196
Registered: August 2008
Senior Veteran
Cool. Thank you Mirek.

Best regards
Iñaki
Previous Topic: clamp() function crashes apps on Linux, gets warning from GCC and CLANG
Next Topic: Big issue with Visual Studio 2019 (some versions)
Goto Forum:
  


Current Time: Sun Sep 27 23:13:55 CEST 2020

Total time taken to generate the page: 0.01325 seconds