const variables in header file and static initialization fiasco

后端 未结 4 1898
情歌与酒
情歌与酒 2021-02-02 16:42

After reading a lot of the questions regarding initialization of static variables I am still not sure how this applies to const variables at namespace level.

<
4条回答
  •  情深已故
    2021-02-02 17:20

    Static initialization fiasco refers to static variables that depend on each other. Merely defining some static const variables will not be a source of problems.

提交回复
热议问题