numenta/nupic.core-legacy

Error with latest Xcode: Directory.cpp: '~Iterator' has a non-throwing exception

mrcslws opened this issue · 0 comments

A semi-recent change to Xcode and the MacOS Command Line Tools cause the nupic.core build to fail.

Currently on my machine with Xcode 10.2.1:

/Users/mlewis/nta/nupic.core/src/nupic/os/Directory.cpp:258:3: error: '~Iterator' has a non-throwing exception specification but can still throw [-Werror,-Wexceptions]
  NTA_CHECK(res == 0) << "Couldn't close directory."

When I revert to an older command line tools from Fall 2018, the build works.

We should change this destructor to be non-throwing.