numenta / nupic.core-legacy

Implementation of core NuPIC algorithms in C++ (under construction)
http://numenta.org
GNU Affero General Public License v3.0
272 stars 276 forks source link

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

Closed mrcslws closed 5 years ago

mrcslws commented 5 years ago

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.