Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> std::cout << DominoTilingCounter(4, 7).count() << '\n';

> // Fails to compile!

What? But this literally does compile. The author is pretty well-versed in C++ so this one is a bit baffling. Just because it's a temporary doesn't mean it's forced to be const or something.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: