Merge pull request #152 from bozaro/no-exceptions

Fix Visual Studio compilation with _HAS_EXCEPTIONS=0
pull/131/head
Jeffrey Walton 2016-05-02 06:20:30 -05:00
commit 50b4f675ac
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@
#include <map>
#include <new>
#if defined(_MSC_VER) && (_MSC_VER < 1900) && defined(_HAS_EXCEPTIONS) && (_HAS_EXCEPTIONS == 0)
// Workaround for: https://connect.microsoft.com/VisualStudio/feedback/details/1600701/type-info-does-not-compile-with-has-exceptions-0
namespace std {
using ::type_info;
}
#endif
#if _MSC_VER >= 1600
// for make_unchecked_array_iterator
#include <iterator>