Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit a8e0d867 authored by Quentin Khan's avatar Quentin Khan

FBasicParticleContainer: fix `getSavedSize` method

Data cast to char* was not const while the method was marked as const.
parent c241b14f
......@@ -366,12 +366,12 @@ public:
* \return The size of the data array
FSize getSavedSize() const{
FSize getSavedSize() const {
return FSize(sizeof(this->size())
// Last element of the attribute/position array
+ (reinterpret_cast<char*>(std::get<Dim+OtherCount+AttributeCount-1>(this->data()))
+ (reinterpret_cast<const char*>(std::get<Dim+OtherCount+AttributeCount-1>(this->data()))
// First element of the attribute/position array
- reinterpret_cast<char*>(std::get<0>(this->data())+this->size())));
- reinterpret_cast<const char*>(std::get<0>(this->data())+this->size())));
//return FSize(sizeof(this->size()) + this->size() * (Dim * sizeof(FReal) + AttributeCount * sizeof(Attribute)));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment