OpenSceneGraph icon indicating copy to clipboard operation
OpenSceneGraph copied to clipboard

Add support of long and unsigned long types for ValueObject

Open elsid opened this issue 4 years ago • 0 comments

This is useful for OpenMW to store std::int64_t and std::uint64_t user values inside osg::Object. C++ doesn't guarantee long to be 64 bit wide but it's common to have std::int64_t as an alias for long and std::uint64_t for unsigned long. It's possible to store such values as std::string, but has overhead and produces additional code with copying int to string and back.

elsid avatar Nov 12 '21 23:11 elsid