remove unnecessary exception specifications, thereby preventing Visual Studio from having epileptic warnings fits filling the screen with heaps of compete and utter rubbish because it doesn't handle exception specifications properly.
Marcelo, please check that this doesn't remove any generated catch handlers. I dont' feel up to chasing a million and one macros to be sure. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8397 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c9b723e2d8
commit
a658cc52aa
1 changed files with 9 additions and 9 deletions
|
|
@ -161,7 +161,7 @@ namespace swig {
|
|||
}
|
||||
|
||||
%fragment("PySwigIterator_T","header",fragment="StdTraits") {
|
||||
#include <iterator>
|
||||
%#include <iterator>
|
||||
namespace swig {
|
||||
|
||||
template<typename OutIterator>
|
||||
|
|
@ -183,7 +183,7 @@ namespace swig {
|
|||
}
|
||||
|
||||
|
||||
bool equal (const PySwigIterator &iter) const throw (std::invalid_argument)
|
||||
bool equal (const PySwigIterator &iter) const
|
||||
{
|
||||
const self_type *iters = dynamic_cast<const self_type *>(&iter);
|
||||
if (iters) {
|
||||
|
|
@ -193,7 +193,7 @@ namespace swig {
|
|||
}
|
||||
}
|
||||
|
||||
ptrdiff_t distance(const PySwigIterator &iter) const throw (std::invalid_argument)
|
||||
ptrdiff_t distance(const PySwigIterator &iter) const
|
||||
{
|
||||
const self_type *iters = dynamic_cast<const self_type *>(&iter);
|
||||
if (iters) {
|
||||
|
|
@ -237,7 +237,7 @@ namespace swig {
|
|||
{
|
||||
}
|
||||
|
||||
PyObject *value() const throw (stop_iteration) {
|
||||
PyObject *value() const {
|
||||
return from(static_cast<const value_type&>(*(base::current)));
|
||||
}
|
||||
|
||||
|
|
@ -246,7 +246,7 @@ namespace swig {
|
|||
return new self_type(*this);
|
||||
}
|
||||
|
||||
PySwigIterator *incr(size_t n = 1) throw (stop_iteration)
|
||||
PySwigIterator *incr(size_t n = 1)
|
||||
{
|
||||
while (n--) {
|
||||
++base::current;
|
||||
|
|
@ -254,7 +254,7 @@ namespace swig {
|
|||
return this;
|
||||
}
|
||||
|
||||
PySwigIterator *decr(size_t n = 1) throw (stop_iteration)
|
||||
PySwigIterator *decr(size_t n = 1)
|
||||
{
|
||||
while (n--) {
|
||||
--base::current;
|
||||
|
|
@ -280,7 +280,7 @@ namespace swig {
|
|||
{
|
||||
}
|
||||
|
||||
PyObject *value() const throw (stop_iteration) {
|
||||
PyObject *value() const {
|
||||
if (base::current == end) {
|
||||
throw stop_iteration();
|
||||
} else {
|
||||
|
|
@ -293,7 +293,7 @@ namespace swig {
|
|||
return new self_type(*this);
|
||||
}
|
||||
|
||||
PySwigIterator *incr(size_t n = 1) throw (stop_iteration)
|
||||
PySwigIterator *incr(size_t n = 1)
|
||||
{
|
||||
while (n--) {
|
||||
if (base::current == end) {
|
||||
|
|
@ -305,7 +305,7 @@ namespace swig {
|
|||
return this;
|
||||
}
|
||||
|
||||
PySwigIterator *decr(size_t n = 1) throw (stop_iteration)
|
||||
PySwigIterator *decr(size_t n = 1)
|
||||
{
|
||||
while (n--) {
|
||||
if (base::current == begin) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue