Home » U++ Library support » U++ Core » Doubt with Buffer<> of a trivially destructible type
Re: Doubt with Buffer<> of a trivially destructible type [message #61221 is a reply to message #61220] |
Thu, 12 December 2024 14:15   |
Oblivion
Messages: 1226 Registered: August 2007
|
Senior Contributor |
|
|
Hello IƱaki,
Quote:
However, vector3_destructible gets true.
Yes, because std::is_trivially_destructible removes all extents (dimensions) of the object in question before its type gets evaluated. So, basically it is returning true for double type.
However, Buffer<Vector3> doesn't. So it expands into Buffer<double[3]>, hence the error.
I think you should instead prefer -if possible- a structure or Buffer<double> mybuffer(count * 3).
Then again, I don't know the exact requirements of your code.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Thu, 12 December 2024 14:17] Report message to a moderator
|
|
|
 |
|
Doubt with Buffer<> of a trivially destructible type
By: koldo on Thu, 12 December 2024 12:58
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: Oblivion on Thu, 12 December 2024 14:15
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: Oblivion on Thu, 12 December 2024 14:40
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: koldo on Thu, 12 December 2024 16:05
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: Lance on Sat, 14 December 2024 19:19
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: koldo on Sat, 14 December 2024 20:45
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: Lance on Sat, 14 December 2024 20:53
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: Lance on Sat, 14 December 2024 21:02
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: Lance on Sat, 14 December 2024 21:37
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: koldo on Sun, 15 December 2024 12:25
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: koldo on Sun, 15 December 2024 12:45
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: Lance on Sun, 15 December 2024 14:29
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: mirek on Thu, 26 December 2024 18:47
|
 |
|
Re: Doubt with Buffer<> of a trivially destructible type
By: koldo on Fri, 27 December 2024 18:34
|
Goto Forum:
Current Time: Tue Aug 26 08:16:39 CEST 2025
Total time taken to generate the page: 0.04930 seconds
|