C++ compiler doesn't like Pythonic code.