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
[boost] Re: BOOST_TRY like macros: time to add them?
by Pavel Vozenilek other posts by this author
Feb 29 2004 5:17PM messages near this date
[boost] Re: BOOST_TRY like macros: time to add them? | Re: [boost] BOOST_TRY like macros: time to add them?
"Pavel Vozenilek" <pavel_vozenilek@[...].com>  wrote

... clicked wrong combination of keys and didn't
finish previous email ...


This snippet works on all systems I use (VC, Intel,
BCB, Comeau-online) w/o warnings:

#if !(defined BOOST_NO_EXCEPTIONS)
#  define BOOST_TRY try
#  define BOOST_CATCH(x) catch(x)
#  define BOOST_RETHROW throw
#else
#  define BOOST_TRY
#  if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
#    define BOOST_CATCH(x) if (!"")
#  else
#    define BOOST_CATCH(x) if(0)
#  endif
#  define BOOST_RETHROW
#endif

/Pavel



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Pavel Vozenilek
Alexander Terekhov
Gennaro Prota
Gennaro Prota
David Abrahams
David Abrahams
Peter Dimov
Gennaro Prota
David Abrahams
Alexander Terekhov
Gennaro Prota
David Abrahams
John Maddock
Peter Dimov
Pavel Vozenilek
Pavel Vozenilek
Pavel Vozenilek
Jody Hagins
Giovanni Bajo
=?iso-8859-1?Q?Joaqu=EDn=20M=AA=20L=F3pez=20Mu=F1oz?=
=?iso-8859-1?Q?Joaqu=EDn=20M=AA=20L=F3pez=20Mu=F1oz?=
Peter Dimov
=?iso-8859-1?q?Lars_Gullik_Bj=F8nnes?=
=?iso-8859-1?q?Lars_Gullik_Bj=F8nnes?=
Guillaume Melquiond
David Abrahams
Pavel Vozenilek
Guillaume Melquiond
David Abrahams
Pavel Vozenilek
Daryle Walker
John Maddock

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