[ptr_container] linking errors

Hi, I'm having linking errors(multiple definitions) with the ptr_map in VC7.1. The problem is in the struct eraser(all its methods) inside the function insert_lookup in the ptr_map_adapter_base template. I've tried inlining all the methods with no success. The workaround I found was making eraser a inner class inside the ptr_map_adapter_base template(moved it from the insert_lookup function). This errors appear when using the operator[] of the very same ptr_map in two different files. I attached the simplest files that I could make that shows these problems... Thank you for boost, Felipe Magno de Almeida. -- Felipe Magno de Almeida Developer from synergy and Computer Science student from State University of Campinas(UNICAMP). Unicamp: http://www.ic.unicamp.br Synergy: http://www.synergy.com.br "There is no dark side of the moon really. Matter of fact it's all dark."

tried inlining all the methods with no success. The workaround I found was making eraser a inner class inside the ptr_map_adapter_base template(moved it from the insert_lookup function).
>>>>
thanks. I've vommitted that. -Thorsten Thank you for boost, Felipe Magno de Almeida.
>>>>>
Thank you for using it. :-)

"Thorsten Ottosen" <nesotto@cs.auc.dk> writes:
tried inlining all the methods with no success. The workaround I found was making eraser a inner class inside the ptr_map_adapter_base template(moved it from the insert_lookup function).
>>>>>
thanks. I've vommitted that. ^--------------- Are you feeling OK? Or is that a typo?
-- Dave Abrahams Boost Consulting www.boost-consulting.com

"David Abrahams" <dave@boost-consulting.com> wrote in message news:ur7ffeddz.fsf@boost-consulting.com... | "Thorsten Ottosen" <nesotto@cs.auc.dk> writes: | | > tried inlining all the methods with no success. The workaround I found | > was making eraser a inner class inside the ptr_map_adapter_base | > template(moved it from the insert_lookup function). | >>>>>>>>>>> | > | > thanks. I've vommitted that. | ^--------------- Are you feeling OK? Or is that a typo? ah sorry, committed. :-) -Thorsten
participants (3)
-
David Abrahams
-
Felipe Magno de Almeida
-
Thorsten Ottosen