[pkg-boost-devel] Bug#545320: Bug#545320: Boost function doesn't compile with -fno-exceptions

Steve M. Robbins steve at sumost.ca
Sun Sep 6 16:41:20 UTC 2009


On Sun, Sep 06, 2009 at 03:06:51PM +0200, Julien PUYDT wrote:
> Package: libboost1.39-dev
> Version: 1.39.0-4
> 
> There is still a problem with boost::function and -fno-exceptions :
> /usr/include/boost/function/function_template.hpp:830: error:
> exception handling disabled, use -fexceptions to enable
> 
> And indeed the copy operator uses try/catch without guard.
> 
> There have been several similar bug reports in the past both in
> debian and in boost bug report systems, so it's possible the problem
> is already fixed upstream.


On Sun, Sep 06, 2009 at 03:32:42PM +0200, Julien PUYDT wrote:
> I had a quick look at that function_template.hpp in boost 1.40, and
> I saw that it now uses macros BOOST_TRY/BOOST_CATCH/etc, which
> probably fix that bug.

Good.  

I have uploaded 1.40 to Debian already, so I'm not inclined to
spend a lot of time fixing this bug.  

On the other hand, the 1.40 packages will probably be in the new queue
for some weeks and 1.39 is the current default boost for debian.  So I
am inclined to upload a fix if a patch were supplied.

As you say, similar bugs have been reported before; e.g. #543576.  I
just verified that the minimal test case in
https://bugzilla.redhat.com/show_bug.cgi?id=477131 is fixed in
1.39.0-4.  I'd appreciate a test case that displays the present
bug.

Thanks,
-Steve




-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20090906/c1e5a65a/attachment.pgp>


More information about the pkg-boost-devel mailing list