The segment of code I put up-there was meant to be placed in the header file as I want the reference to stay. The code I have placed is supposed to be in two different files.
I think I am clear now.
Anyhow, I have created a map:
map<b*, a*>
and I think it should work. Any ideas how to test this?