Closed Carandiru0 closed 3 years ago
I think I saw your email earlier, unfortunately I don't know how one would fix this. element_type is one of the template parameters, aligned_element_type is necessary to support overaligned types. if you have any ideas let me know.
ok thanks, If I do come up with something I will post it here. What am I missing by not using alignment btw?
Nothing, if your type is not overaligned. Although it will fail if your type is < 32bit without alignment.
Hello!
I've run into an issue that prevents me from updating plf to the newer/latest version.
I use plf colony in a slightly unusual way:
class cBuildingGameObject : public tNonUpdateableGameObject<Volumetric::voxelModelInstance_Static>, public type_colony<cBuildingGameObject>
In this case thru multiple inheritance. I have attached the type_colony and related plf files I have been using. btw, plf is literally awesome.
The problem is a change that prevents me from using it with inheritance.
In the plf_colony.new.h file, lines 279-283
Which is where the problem lies, as element_type is not defined while using inheritance. eg.)
In the plf_colony.h file this PLF_COLONY_ALIGNMENT_SUPPORT is undefined before inclusion globally in my usage to work-around this issue.
One of the benefits of using inheritance like I have here, is the association with the type. static methods in type_colony access the the internal colony representing all instances of the type it contains. The type it contains can also be overridden in further levels of inheritance. The type safety and access is simplified and directly the type being used for all of it's instances.
Thank you for your time!