Put boost qualifiers in front of things.
Remove boost bind.
Use c++11.