[C++-sig] Boost.Python v2: beginning of generalized object support
David Abrahams
david.abrahams at rcn.com
Mon Jun 17 12:55:34 CEST 2002
----- Original Message -----
From: "Niki Spahiev" <niki at vintech.bg>
> > Why don't you use a different macro? Or better yet, enter the modern
world
> > and use an inline function instead? ;-)
>
> Because code with _("") is already written, but Python interface is not
:)
Nasty; that macro is going to stomp on Boost.Python's headers even if I
provide an alternate interface for you. In how many places is this macro
defined? Can't you write:
#undef _
inline void _(char const* x) { gettext(x); }
Macros, especially short ones, are up to no good.
-Dave
More information about the Cplusplus-sig
mailing list