[C++-sig] Boost.Python v2: beginning of generalized object support

Niki Spahiev niki at vintech.bg
Fri Jul 19 15:39:44 CEST 2002


David Abrahams wrote:
> Hi,
> 
> Now that I'm revisiting this issue for my June monthly report, I'm not sure
> that using the name for an inline member function "_" with one argument
> would actually cause any problems in real code. AFAICT, the result would be
> that the member function would be silently renamed "gettext" in the common
> case... and all uses of the function will also be silently renamed to call
> x.gettext(...). Yes, technically this gives an ODR violation if the file is
> included with and without the macro defined, but I know of no real
> compilers which will care about that.
> 
> Am I missing something here?


obj._("test") will include string "test" for translation (i18n)

Niki Spahiev






More information about the Cplusplus-sig mailing list