Skip to content

Instantly share code, notes, and snippets.

@foobit
Created May 25, 2018 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foobit/7485d0d2b518c07e23a10b82fd6f9d25 to your computer and use it in GitHub Desktop.
Save foobit/7485d0d2b518c07e23a10b82fd6f9d25 to your computer and use it in GitHub Desktop.
odd vs warning: cl.exe main.cpp /W4
struct foo
{
template<typename... Args>
void operator[](Args&&...)
{
}
};
struct bit {};
int main()
{
foo f;
f[
bit() // warning C4709: comma operator within array index expression
];
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment