You can put the anon namespace inside the mongo namespace, which seems to be the standard practice.