Re: Macro var args
From: bartek (spam.will.eat.itself_at_o2.pl)
Date: 05/15/04
- Next message: Victor Bazarov: "Re: Interview Questions"
- Previous message: TheDD: "Macro var args"
- In reply to: TheDD: "Macro var args"
- Next in thread: Gianni Mariani: "Re: Macro var args"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 15 May 2004 15:27:16 +0000 (UTC)
TheDD <pas.d.email@pas.de.spam.fr> wrote in
news:c85980$uor$1@news-reader2.wanadoo.fr:
> Hello all,
>
> right now, i'm using the following macro to automatically add
> informations to exceptions:
>
> #define THROW(Class, args...) throw Class(__FILE__, __LINE__, ## args)
>
> but AFAIK, it's gcc specific. Is there a way to do it in a standard
> c++ way?
Not really.
Though, there's a very interesting alternative technique.
See the following article by Andrei Alexandrescu and John Torjo.
http://www.cuj.com/documents/s=8464/cujcexp0308alexandr/cujcexp0308alexandr.html
-- :: bartekd [at] o2 [dot] pl
- Next message: Victor Bazarov: "Re: Interview Questions"
- Previous message: TheDD: "Macro var args"
- In reply to: TheDD: "Macro var args"
- Next in thread: Gianni Mariani: "Re: Macro var args"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|