This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/54289] setjmp isn't included into std namespace
- From: "dmitriy-hshg at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Aug 2012 19:55:57 +0000
- Subject: [Bug libstdc++/54289] setjmp isn't included into std namespace
- Auto-submitted: auto-generated
- References: <bug-54289-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54289
--- Comment #9 from Dmitry <dmitriy-hshg at mail dot ru> 2012-08-16 19:55:57 UTC ---
C standard:
The header <setjmp.h> defines the macro setjmp, and declares one function and
one type, for bypassing the normal function call and return discipline.
OK. I agree with you. But one moment. If my system is BSD I will write
std::setjmp() that isn't good. May be better:
__BEGIN_NAMESPACE_STD
typedef struct __jmp_buf_tag jmp_buf[1];
__END_NAMESPACE_STD
extern int setjmp (jmp_buf __env) __THROW;
I think setjmp should be outside of std.