[Boost.Graph] - problem with A* and bundled properties

I'm trying to use Bundled properties with astar.
But I get the following error, below.
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\limits(109)
: error C2440: '<function-style-cast>' : cannot convert from 'int' to
'C'
1> No constructor could take the source type, or constructor
overload resolution was ambiguous
1> C:\Program Files\Microsoft Visual Studio
9.0\VC\include\limits(107) : while compiling class template member
function 'C std::numeric_limits<_Ty>::max(void) throw()'
1> with
1> [
1> _Ty=C
1> ]
1> C:\Boost\include\boost-1_36\boost/graph/astar_search.hpp(342)
: see reference to class template instantiation
'std::numeric_limits<_Ty>' being compiled
1> with
1> [
1> _Ty=C
1> ]
I noticed that this is the same problem as a post from January 2008
(Date: 2008-01-09 17:56:40), but there was no reply posted.
The source code is attached; I get the same error with Boost 1.36 or 1.37
Here are my structures:
class EdgePropertyMap
{
public:
cost weight;
};
typedef boost::property_map
participants (1)
-
David Conner