I myself hit this error in Ubuntu 18.04 but after some searches I found out that the problem is an epidemic. Like [this one](https://github.com/numenta/nupic/pull/668) I will try to fix but as I'm not a real contributor on the source I will post some hints here. I will try to convert to C++11