opencamlib icon indicating copy to clipboard operation
opencamlib copied to clipboard

VS2019 compilation warning

Open fred2020-net opened this issue 5 years ago • 0 comments

Hello,

I get a warning when compiling on VS2019, that was not when previously compiling in VS2015.

smart_weave.cpp ##[warning]src\algo\smart_weave.cpp(338,33): Warning C4834: discarding return value of function with 'nodiscard' attribut

for( in_edge_itr = in_edges.begin(), out_edge_itr = out_edges.begin(); in_edge_itr < in_edges.end(), out_edge_itr < out_edges.end(); in_edge_itr++, out_edge_itr++ )

in 2nd line of code in_edge_itr < in_edges.end() with the operator <

What is the consequence ? Can someone have an idea for a fix ?

Thank you

fred2020-net avatar Nov 06 '20 11:11 fred2020-net