Just write a function that initializes the element, or if you want (opinion-based), use MACRO.
By the way, I personally would do it like this:
void mystruct_init( struct mystruct* dst, int const condition )
{
if ( condition )
init_first_way(..);
else
init_second_way(..);
}
. , :
- !
, , , .
, , ( , , : stl vs2015 , ), .