
Hi Brock, ----- Mensaje original ----- De: Brock Peabody <brock.peabody@npcinternational.com> Fecha: Lunes, Noviembre 7, 2005 7:07 pm Asunto: [boost] multi_index problem in VC 7.1
If I try to compile the very first example in multi index I get the following error:
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\boost\multi_index\detail\node_type.hpp(56) : error C2903: 'node_class' : symbol is neither a class template nor a functiontemplate
I get this with 1.33 and 1.32. I've tried many different compiler options. Here is my latest command line:
/Ox /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "NOMINMAX" /D "_AFXDLL" /D "_MBCS" /FD /EHsc /MD /GS /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TP
I've dug around a bit and I can't make any sense of this problem. Has anyone else seen this?
The exact code I'm compiling is:
#include <boost/multi_index/key_extractors.hpp> #include <boost/multi_index_container.hpp>
[...] I think you forgot to #include <boost/multi_index/ordered_index.hpp> Does this solve your problem? Similar difficulties have been reported at times here in the list, maybe I should update the doc snippets so that the necessary #include's are explicitly shown. HTH, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo