Subject: Re: [boost] bcp update #2: namespace renaming
From: Artyom (artyomtnk_at_[hidden])
Date: 2010-01-01 15:58:36
> Indeed, however your script would still miss (all?) of the
> extern "C"
> callbacks in current Trunk.
You right, my script does not handle them.
I've checked some of them:
Even it is defined as extern "C" it is inline function thus it should
not even appear in object file. Not a probem
Indeed, bad, but this is specific library bug and should be reported
to their maintiainers.
Library developers should make sure to use proper namespaces in "C like"
functions: i.e. add "boost_" prefix as it is done with #define's
> Plus all of the TR1 math functions (which should definitely
> not be renamed
What do you mean? It is still under boost::tr1:: or am I wrong?
> Obviously these could be renamed as special cases easily
> enough... but
> maintaining a manual list of API's to rename is a
> maintainance nightmare.
> Any better ideas?
Report bugs to developers and fix them.
If someone declares
extern "C" void my_func();
It pollutes global namespace -- rename it to boost_my_func
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk