MCPcopy Create free account
hub / github.com/boostorg/json / usingSpecializedTrait

Function usingSpecializedTrait

test/snippets.cpp:1005–1012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1003BOOST_CORE_STATIC_ASSERT( has_value_to<user_ns2::ip_address>::value );
1004
1005void
1006usingSpecializedTrait()
1007{
1008 value jv1{127, 0, 0, 1};
1009 auto const addr = value_to< user_ns::ip_address >( jv1 );
1010 auto const jv2 = value_from(addr);
1011 assert( jv1 == jv2 );
1012}
1013
1014void
1015usingContextualConversions()

Callers 1

runMethod · 0.85

Calls 1

value_fromFunction · 0.85

Tested by

no test coverage detected