Re: g++ warning
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: g++ warning
- From: "Christian N." <cn00@...>
- Date: 2015年2月25日 10:18:34 +0100
On 2015年02月25日 10:14 +0100, Dirk Laurie <dirk.laurie@gmail.com> wrote:
The absolutely standard construction
static const luaL_Reg funcs [] {
{NULL,NULL}
}
raises a g++ warning.
warning: extended initializer lists only available with -std=c++11 or
-std=gnu++11 [enabled by default]
Must I worry?
You forgot the = between the [] and the {. If you leave it withouth one,
then g++ is correct: You are using C++11 uniform/brace initialization.