
15 Jun
2007
15 Jun
'07
4:18 p.m.
Eric Niebler wrote:
If you are using the above formulation, then the reference is not initialized until runtime. Due to order of initialization issues, you could end up indirecting through an uninitialized reference and crash even before you hit main().
Sorry, could you give me any example such that type const &name = get_static_local<type>(); might cause a crash? Regards, -- Shunsuke Sogame