std::initializer_list as function argument

后端 未结 4 629
野性不改
野性不改 2020-12-13 06:54

For some reason I thought C++0x allowed std::initializer_list as function argument for functions that expect types that can be constructed from such, for exampl

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 07:28

    This is either a compiler bug or your compiler doesn't support std::initializer_list. Tested on GCC 4.5.1 and it compiles fine.

提交回复
热议问题