add more docs and cases about how to use the %execption directive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7550 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f482f4346a
commit
6777a49b1f
3 changed files with 34 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ template<typename T> class Queue {
|
|||
last = (last + 1) % maxsize;
|
||||
nitems++;
|
||||
}
|
||||
T dequeue() throw(EmptyError) {
|
||||
T dequeue() {
|
||||
T x;
|
||||
if (nitems == 0) throw EmptyError();
|
||||
x = items[(last + maxsize - nitems) % maxsize];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue