gcc(4.8)或icc(14.0)是否有任何模式或其他非标准机制可以保证静态局部变量的早期安全构造?为了在运行时可控的粗略分析,我需要一个本地静态对象引用的全局集合。标准的延迟构造(以及处理锁定或冗余的thread_local集合)让我很受伤,在开始时拥有完整的点列表将非常有利。有希望实现吗?#include#include//Reallywanttobuildthislistbeforemain()started!structProfilePoint;staticstd::dequepps;//Costlyconstruction,butonlyeverwithliteral/co