Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Custom Conversions Boost.JSON uses two mechanisms to customize conversion between <<ref_value>> and user types. One mechanism involves specializing type traits. The other one is more powerful and requires defining overloads of `tag_invoke`. Both mechanisms will be further explained in this section.自定义转换 Boost.JSON 提供了两种机制用于自定义 <<ref_value>> 与用户类型之间的转换。一种机制涉及特化类型特征(type traits)。另一种机制更强大,需要定义`tag_invoke`的重载。本节将进一步解释这两种机制。</ref_value>