Home » U++ Library support » U++ Core » Doubt with Buffer<> of a trivially destructible type
Doubt with Buffer<> of a trivially destructible type [message #61220] |
Thu, 12 December 2024 12:58  |
 |
koldo
Messages: 3437 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
Compiling this code with CLANG, I get the error: "object expression of non-scalar type 'double[3]' cannot be used in a pseudo-destructor expression" in the line with Buffer.
However, vector3_destructible gets true.
I wanted to ask you how to use Buffer for such a data type, or if there is a better dynamic container.
typedef double Vector3[3];
bool vector3_destructible = std::is_trivially_destructible<Vector3>::value;
Buffer<Vector3> vector3_data(10);
Best regards
IƱaki
|
|
|
 |
|
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: Fri Jun 06 09:07:48 CEST 2025
Total time taken to generate the page: 0.04685 seconds
|