$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: sashan (sashang_at_[hidden])
Date: 2003-10-09 20:44:36
I'm trying to use a vistitor class on a graph I have defined. The
visitor class is very simple and inherits from default_dfs_visitor:
class OpenGLVisitor :
public boost::default_dfs_visitor
{
public:
OpenGLVisitor(void);
virtual ~OpenGLVisitor(void);
};
My graph type is:
typedef adjacency_list < vecS, listS, directedS > graph_t;
The code to perform a dfs on the graph is as follows:
graph_t g;
depth_first_search(g, visitor(OGLVisitor));
However I get the compiler error (see attachment).
If I change the typedef to
typedef adjacency_list < vecS, vecS, directedS > graph_t;
then there is no error. This seems odd since it should also work when
the vertices of the graph use the std::list as their container class.
I'm using VC++7.1.
| Build Log |
|
| Command Lines |
Creating temporary file "e:\Code\Edge\Render\Debug\RSP00000F.rsp" with contents [ /Od /I "../../boost" /D "WIN32" /D "_DEBUG" /D "_LIB" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /GR /Yu"StdAfx.h" /Fp"Debug/Render.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /TP .\SceneGraph.cpp ] Creating command line "cl.exe @e:\Code\Edge\Render\Debug\RSP00000F.rsp /nologo" |
| Output Window |
Compiling...
SceneGraph.cpp
e:\Code\Edge\Render\SceneGraph.hpp(38) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
e:\Code\boost\boost\iterator_adaptors.hpp(1409) : see reference to class template instantiation 'boost::filter_iterator_generator |
| Results |
Build log was saved at "file://e:\Code\Edge\Render\Debug\BuildLog.htm" Render - 1 error(s), 2 warning(s) |