>> Is that line of code even correct for Reals?  std::min isn't supposed
>> to operate on container iterators, it's just supposed to return the
>> minimum of two elements with a defined operator<.  There's a
>> std::min_element which is probably what the author (I hope it wasn't
>> me...) was thinking of.
> 
> Wow, I think you are exactly right.  So could this have compiled all
> this time because operator< is valid for two iterators, which may be
> all the internals of std::min() would have needed?  Looks like the
> code has been this way as far back as SVN goes, making it pre-open
> source LibMesh.

Then that excludes Roy as a suspect ;-)
I'm sure it was me.

-Ben


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to