Once a Boost library (I have read that ten Boost libs are considered to be a become a part of Standard Library) becomes a part of Standard Library – is it going to keep it’s boost namespace or the code will end up in std namespace?
If the latter is the case – how would you workaround that potential namespace clash in your code.
Cheers.
The items from Boost libraries that made it to the standard will of course be included in namespace
std. However, I don’t think that their Boost counterpart will change in any way : if we take the example ofbind, people compiling C++0x will usestd::bindwhile people compiling C++03 will keep usingboost::bind.I may be wrong, but from my understanding, it’s the concepts from boost libraries that made it to the standard, not the exact specifications. As far as I know,
boost::bindcould very well keep evolving and provide something different fromstd::bindat some point (hell, I haven’t read the C++0x standard yet so I don’t have the answer, butstd::bindmight already be different fromboost::bind!).There is no issue with namespace clash here : each library stands in it own namespace, and you could very well use
std::bindandboost::bindin the same C++0x project.