remove vc++ noise
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8629d7f513
commit
cf9272fbae
5 changed files with 31 additions and 0 deletions
|
|
@ -96,8 +96,14 @@ public:
|
||||||
|
|
||||||
void bar(F *) { }
|
void bar(F *) { }
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4624) // : destructor could not be generated because a base class destructor is inaccessible
|
||||||
|
#endif
|
||||||
class FFF : public F {
|
class FFF : public F {
|
||||||
};
|
};
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(default: 4624) // : destructor could not be generated because a base class destructor is inaccessible
|
||||||
|
#endif
|
||||||
|
|
||||||
/* A class with a protected destructor */
|
/* A class with a protected destructor */
|
||||||
class G {
|
class G {
|
||||||
|
|
|
||||||
|
|
@ -64,12 +64,20 @@ std::wstring& test_reference_out() {
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
|
||||||
void test_throw() throw(std::wstring){
|
void test_throw() throw(std::wstring){
|
||||||
static std::wstring x = L"x";
|
static std::wstring x = L"x";
|
||||||
|
|
||||||
throw x;
|
throw x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,12 +70,20 @@ std::wstring& test_reference_out() {
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
|
||||||
void test_throw() throw(std::wstring){
|
void test_throw() throw(std::wstring){
|
||||||
static std::wstring x = L"x";
|
static std::wstring x = L"x";
|
||||||
|
|
||||||
throw x;
|
throw x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
%module std_containers
|
%module std_containers
|
||||||
|
|
||||||
|
%{
|
||||||
|
#include <set>
|
||||||
|
%}
|
||||||
%include std_vector.i
|
%include std_vector.i
|
||||||
%include std_string.i
|
%include std_string.i
|
||||||
%include std_deque.i
|
%include std_deque.i
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,12 @@
|
||||||
%csmethodmodifiers x "public new"
|
%csmethodmodifiers x "public new"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
%{
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
class Foo {
|
class Foo {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue