====== 2011.01.13 - most vexing parse ====== among many pitfalls in [[wp>C++]] there is so called "most vexing parse". as the name suggests, it is vexing. especially that it is a heritage from C. consider given code: #include struct S { S(){ std::cout<<"S()\n"; } S(const S&){ std::cout<<"S(cpctor)\n"; } }; int main(void) { S s( S() ); return 0; } what will show on the screen? if your answer wasn't "nothing", that read on on explanation on [[http://arstechnica.com/civis/viewtopic.php?f=20&t=767929|the most vexing parse]]((many thanks to [[http://pl.linkedin.com/pub/marcin-skrobiranda/a/361/249|Strzygolak]] for sharing this link))...