Is there a standard analogue of the gcc construction:
__attribute__ ((constructor)) I understand that you can always write:
static bool ini_once = ( do_somthing(), true ); , but I would like to minimize the work when porting code from gcc to the standard C ++ 11 / C ++ 14 and not reinvent unnecessary variables.