ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] compiling boost without exceptions(Boost.All,Boost.SmartPtr)
by John Maddock other posts by this author
Aug 10 2002 10:23AM messages near this date
Re: [boost] compiling boostwithoutexceptions(Boost.All,Boost.SmartPtr) | Re: [boost] compiling boost withoutexceptions(Boost.All,Boost.SmartPtr)
> I propose the following alternative to your patch:
> 
> * New header boost/throw.hpp:
> 
> #ifdef BOOST_NO_EXCEPTIONS
> 
> #include <exception>
> 
> void boost_throw(std::exception const & e); // user defined
> 
> #else
> 
> template<class E> void boost_throw(E const & e)
> {
>     throw e;
> }
> 
> #endif

Doesn't that throw a std::exception, rather than the "real" class type?

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Lars Gullik =?iso-8859-1?q?Bj=F8nnes?=
Lars Gullik =?iso-8859-1?q?Bj=F8nnes?=
Lars Gullik =?iso-8859-1?q?Bj=F8nnes?=
Peter Dimov
Lars Gullik =?iso-8859-1?q?Bj=F8nnes?=
Peter Dimov
David Abrahams
John Maddock
David Abrahams
Peter Dimov
Peter Dimov
Rob Stewart
David Abrahams
Fernando Cacciola
Jeremy Siek
Peter Dimov
Peter Dimov
Fernando Cacciola
Rene Rivera
John Maddock
Rene Rivera
Peter Dimov
Fernando Cacciola
David Abrahams
David Abrahams
Rob Stewart
David Abrahams
David Abrahams

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved