From: Christian P. <cp...@us...> - 2005-01-24 09:15:10
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23444/include/pclasses/System Modified Files: ThreadKey.h Log Message: Fixed throw specifiers. Index: ThreadKey.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/ThreadKey.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ThreadKey.h 24 Jan 2005 01:19:25 -0000 1.3 +++ ThreadKey.h 24 Jan 2005 09:14:56 -0000 1.4 @@ -39,8 +39,8 @@ ThreadKeyImpl() throw(SystemError); ~ThreadKeyImpl() throw(); - void set(void* ptr) throw(); - void* get() const throw(); + void set(void* ptr) throw(SystemError); + void* get() const throw(SystemError); private: unsigned long _handle; @@ -61,19 +61,19 @@ inline ~ThreadKey() throw() {} - inline ThreadKey& operator=(const ThreadKey& k) throw() + inline ThreadKey& operator=(const ThreadKey& k) throw(SystemError) { set(k.get()); return *this; } - inline ThreadKey& operator=(Type* val) throw() + inline ThreadKey& operator=(Type* val) throw(SystemError) { set(static_cast<void*>(val)); return *this; } - inline operator Type* () throw() + inline operator Type* () throw(SystemError) { return (Type*)get(); } }; |