Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Non-Throwing Conversions For the case where throwing exceptions is undesirable, Boost.JSON also provides a non-throwing version of <<ref_value_to>>, the function template <<ref_try_value_to>>. It returns {ref_result}, a specialised variant that either holds a value or an {ref_error_code}.不抛异常的转换 对于不希望抛出异常的场景,Boost.JSON 还提供了 <<ref_value_to>> 的不抛异常版本,即函数模板 <<ref_try_value_to>>。它返回 {ref_result},这是一个特化的变体类型,要么持有转换得到的值,要么持有 {ref_error_code}。</ref_try_value_to></ref_value_to>