Travis test gcc-7.2 and c++-17

This commit is contained in:
William S Fulton 2017-10-07 21:48:35 +01:00
commit 6981abc440
6 changed files with 69 additions and 0 deletions

View file

@ -44,6 +44,10 @@ template<class T> class vector {
#if defined(_MSC_VER)
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif
#if __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated" // dynamic exception specifications are deprecated in C++11
#endif
class Base {
public:
@ -70,6 +74,9 @@ public:
#if defined(_MSC_VER)
#pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif
#if __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif
%}
%template(maxint) maximum<int>;