A conversion context passed to readers, writers, and down to representation_convert() and representation_type() will let users extend conversion behaviors without surprises.
Out of the box provide contexts for:
No conversions, strictly only BSON types.
Default conversions, those currently implemented with representations.
Unsigned integer conversions, extending the default context with unsigned integers reinterpreted as signed.
A conversion context passed to readers, writers, and down to
representation_convert()
andrepresentation_type()
will let users extend conversion behaviors without surprises.Out of the box provide contexts for: