init_priority across different namespaces

Sergey Kljopov hlodvig@unipro.ru
Mon May 6 22:30:00 GMT 2013


Hi,

Is init_priority affects initialization order across different namespaces?
Means in the code (the same file)
namespace x_sp { Foo a_x __attribute__ ((init_priority (2000))); }
namespace y_sp { Foo a_y __attribute__ ((init_priority (1000))); }
which object will be initialized first?

Sergey Kljopov




More information about the Gcc mailing list