| breadbread1984 (28) | |||||
I want to restrict the initialization sequence of static objects. So I apply the __attribute init_priority of g++ to achieve it. I want the static object
initialized before an array of object
. Will the temporary objects be initialized after sensor object? Thanks in advance. | |||||
|
Last edited on
|
|||||
| chrisname (5896) | |
|
I would read the gcc/g++ documentation to find out. [edit 1] According to http://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Attributes.html it should work as you expect. [edit 2] except that your numbers 2 and 3 are wrong; the numbers have to be within 101 and 65535 inclusive (I'm guessing the first 100 are reserved). | |
|
Last edited on
|
|