Brain Dump

Most Vexing Parse

Tags
lang-design

Is a parsing problem for C++ code due to the different precedence rules in the parser implementation.

// Is this:
//   + Declaring a variable foo of type Foo calling a constructor taking
//     a single argument of a newly default-constructed Bar object.
//   + A function declaration. <- Hint: Yes, it's this, WHAT? 😕.
Foo foo(Bar());

Links to this note