Description
Currently, we can write any user object using two types of semantics:
// Basic writer.WriteObject<ObjectType>(obj); // Pointer-based writer.WriteObject<ObjectType*>(&obj);
However, this does not work for primitive types:
// Basic. Works just fine writer.WriteObject<std::string>(str); // Pointer-based. Compilation error. writer.WriteObject<std::string*>(&str);
Need to add support of the pointer semantics for the primitive types as well.