我正在将 BSON 作为有线协议(protocol)进行测试,我需要能够更改已创建的 BSONObj 上的一些值...问题是除了从从头开始!
有什么建议吗?
最佳答案
我收到了来自 10gen 的 Dwight Merriman 的回复:
generaly they are immutable -- the common usage is to serialize/deserialize from a cpp object of your choice. See also $set and $inc but those are server-side.
所以...我们知道了:)
关于c++ - 更改 BSON 字段值 (C++),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5453645/