Boost logo

Boost :

From: Andy (atompkins_at_[hidden])
Date: 2007-06-01 10:41:09


Andy <atompkins_at_[hidden]> wrote in
news:Xns99426893EB0Catompkinsfastmailfm_at_80.91.229.5:

> Pavol Droba <droba_at_[hidden]> wrote in
> news:465FCB55.2080106_at_[hidden]:
>
>> Oliver.Kowalke_at_[hidden] wrote:
>>>> uuid is using std::find without qualification and so it
>>>> conflicts with boost::find declared in the string_algo.
>>>
>>> Qualified both find invokations with std:: - now it's working
>>>
>>>> Looking through the uuid.hpp code, there are lots of 'using
>>>> namespace' directives. Althoug they are only local, they could
>>>> cause problems, especialy in the scope of boost.
>>>
>>> So they should prefented in general?
>>>
>>
>> When you are writting a general purpose library like the one for
>> boost, it is very dangerous to use unqualified calls to other
>> namespaces unless you know what you are doing.
>>
>> You cannot predict in what environment will be your library used.
>>
>
> Thank you for finding this! I thought it would be ok since they were
> local. I will remove all the 'using namespace' directives and
> unqualified function calls, and then upload a new version.
>
>
>> Regards,
>> Pavol.
>
> Thanks again,
> Andy.
>

Uploaded a new version to the vault. uuid_v10.zip

Andy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk