Home » U++ Library support » U++ Core » Vector initialization
Vector initialization [message #54596] |
Wed, 19 August 2020 09:40  |
 |
koldo
Messages: 3435 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
|
|
|
|
|
Goto Forum:
Current Time: Sun May 11 20:03:55 CEST 2025
Total time taken to generate the page: 0.03111 seconds
|