Boost logo

Boost :

Subject: Re: [boost] bcp update #2: namespace renaming
From: Artyom (artyomtnk_at_[hidden])
Date: 2010-01-01 09:28:33


>
> Sigh... probably :-(
>
> Is that a complete list of all the top level
> namespaces? If not, any ideas on how to quickly
> produce one?
>

Hello,

Indeed this is a problem, but I also remember that not only namespace are
relevant.

In some older versions of boost I remember (I think in boot_thread 1.35)
some function had names like:

extern "C" boost_thread_some_callback_functions

Were used, also, if at some point shared object/dll dynamic loading
would be added they may use resolveable points like

extern "C" boost_foobar_resolvable_sybol.

My be added, outside boost namespace in order be loaded with
dlsym/GetProcAddress.

I suggest different approach I used in my namespace renaming
script:

http://art-blog.no-ip.info/files/rename.py

I had taken each tocken and substituted boost -> newnamespace and
BOOST -> NEWNAMESPACE

Also I required rename directories as well.
This approach is free from the above error that could happen.

If some symbol would be missed it may cause symbol collapse and
some wired bugs when using 2 versions boost in same program,
shared object.

I would recommend you to take a look on this script. It worked very
fine for me, and it is very simple and generic.

Artyom

      


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