dboo::version_handler::retype_member
void retype_member(const char* current_name, const member_cvt_base* cvt); // 1)
n/a
Adds a converter that can convert a member from an old type to a new. This assumes that the member field exists in both the old and the current version, but with different types. If the member has changed names as well, you need to use the rename_member() to add a name mapping. The name mapping is applied before the conversion occurs, so the retype_member must be linked to the current name rather than the old name. Note that primitive types and sequence types are automatically converted.
- 1
Adds a converter that can convert a member from an old type to a new.
Parameters
- current_name
The member name.
- cvt
A converter object.
Return value
(none)
Example