Handling Namespaces

closed account (S6k9GNh0)
So, recently, I've found something rather stupid in the boost libraries. I learned that the place holders for boost bind (_1, _2, etc.) are in global namespace which breaks compatibility with std::bind or any other alternative. I wanted to use std::bind for a few other reasons still so I was looking into methods around the problem.

Someone suggested namespace aliasing and qualifying. The terminology confuses me kinda and I couldn't really find an example of what he was talking about. Could someone give me an example that might help address the problem?
Last edited on
closed account (S6k9GNh0)
*bump*
closed account (1vRz3TCk)
Someone suggested namespace aliasing and qualifying.

aliasing: namespace <new> = <old>

qualifying: use std::bind() instead of bind()
Last edited on
You might consider using lambda functions over std::bind().
closed account (S6k9GNh0)
Galik, I'll look into it.
Topic archived. No new replies allowed.