On Wed, 23 Jan 2008, John Peterson wrote:

> 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.

Yuck.  I guess nobody uses DistributedVector enough to have noticed
the problem.

The fix looks simple enough (we ought to be explicitly using
std::complex<T>::real()), but I'm not sure of the cleanest way to do
it in standard C++.  You can't partially specialize one method or two
in a templated class without redundantly declaring a specialized
version of the whole class?  Seriously?
---
Roy

-------------------------------------------------------------------------
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