Home » U++ Library support » U++ Core » Vector < Report >
Re: Vector < Report > [message #39519 is a reply to message #39517] |
Mon, 25 March 2013 14:49 |
|
Hi deep,
deep wrote on Mon, 25 March 2013 12:30 | I would like to understand why Vector < Report > is giving error.
|
Vector has some requirements that its elements must obey. If I remember correctly, it is that it must be moveable and that deep-copy constructor must exist. Report doesn't fulfill that, so it results in compilation error. Array uses different storage, so it is not necessary to meet these stricter conditions, hence it works well. To find out more details, I'd recommend you to read Tutorial about containers, esp. sections 4 and 5.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Sat May 04 12:12:01 CEST 2024
Total time taken to generate the page: 0.01978 seconds
|