Re: [C++-sig] [Boost-users] boost python & context manager/with statement

2012-02-29 Thread Trigve Siver
> From: Dave Abrahams > To: boost-us...@lists.boost.org > Cc: cplusplus-sig@python.org > Sent: Tuesday, February 28, 2012 10:06 PM > Subject: Re: [Boost-users] boost python & context manager/with statement > > > on Sun Feb 12 2012, Avi Bahra wrote: > >> Does boost python support context mana

[C++-sig] throw_error_already_set and compiler warnings

2012-02-29 Thread Johan RĂ¥de
The declaration BOOST_PYTHON_DECL void throw_error_already_set(); should maybe be changed to BOOST_PYTHON_DECL BOOST_ATTRIBUTE_NORETURN void throw_error_already_set(); This will help eliminate warnings on some compilers, and will save people the trouble of writing code like int f()