[pyicu-dev] [PATCH] Add correct namespace declarations everywhere

Steven R. Loomis srl at icu-project.org
Tue Sep 11 15:30:36 PDT 2007


That makes sense because the definition is IN the namespace, not  
USING it.

I'm not sure quite why it is defined there, actually , but that's  
another matter.

-s

On 11 Set 2007, at 15:07, Andi Vajda wrote:

>
> On Tue, 11 Sep 2007, Fredrik Roubert wrote:
>
>> On 9/11/07, Andi Vajda <vajda at osafoundation.org> wrote:
>>
>>> Probably because of my very spotty knowledge of C++ at the time.
>>> If you submit another patch removing all occurrences of icu::,  
>>> I'll take it
>>> too.
>>
>> OK, here's such a patch. It removes all occurrences of icu:: and uses
>> U_NAMESPACE_USE in common.h, as proposed by Steven, instead.
>
> One glitch in your patch: in common.h, the UStringEnumeration  
> definition still needs to be wrapped with U_NAMESPACE_BEGIN and  
> U_NAMESPACE_END. Without it, PyICU doesn't link. I'm building  
> against ICU 3.6.
>
> Other than that, all seems fine.
> Thank you !
>
> Andi..




More information about the pyicu-dev mailing list