Travis test gcc-7.2 and c++-17
This commit is contained in:
parent
dcf8730cf3
commit
6981abc440
6 changed files with 69 additions and 0 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue