Hi, I'm currently using MSVC9 and the code listed below doesn't compile,
instead producing the following errors and warnings:
Warning 1 warning C4100: 'x' : unreferenced formal parameter
c:\program files\boost\boost_1_41_0\boost\concept\detail\msvc.hpp 20 test
Warning 2 warning C4100: 'id' : unreferenced formal parameter
c:\program
files\boost\boost_1_41_0\boost\graph\dag_shortest_paths.hpp 86 test
Error 3 error C2440: '<function-style-cast>' : cannot convert from
'int' to 'D' c:\program files\microsoft visual studio
9.0\vc\include\limits 109 test
I know MSVC has issues with named parameters among other things, but I
haven't been able to get it to compile with the non-named-parameters
overload either, in this instance.
What am I misusing and how am I misusing it? Also, I get the impression
that the default combiner/comparer may be unsafe for floating-point
comparisons and addition (with respect to over/underflow and comparing
floating point values, I seem to recall it being a good idea never to
compare with direct equalities, eg. x == infinity because of rounding
issues). Might it be a good idea to further specialize appropriate areas
of the algorithm code to account for this, or am I
over-generalizing(specializing?)? How about a specialized closed_plus<>
in relax.hpp which makes the comparisons more safely for floats and
doubles (since both parameters "a" and "b" of closed_plus must be of
type T anyway)?
#include