On Wed, 23 Jan 2008, John Peterson wrote:

> How about
>
> #ifdef USE_COMPLEX_NUMBERS
> // use ::real syntax
> #else
>
> #endif
>
>
> I didn't try this so if that makes no sense sorry.

That was actually the first thing I started coding, so hopefully it
makes some sense.  ;-)  But DistributedVector is supposed to be
templated, not just hard coded around Number, so I worried that we
might see that break something later.

So my current thought is just to make inline helper functions and do
partial specialization on those, but for some reason now my compiler
doesn't seem to recognize that

Real min_realpart(const std::vector<std::complex<T> > &v)

should take precedence (when it matches) over

Real min_realpart(const std::vector<T> &v)

It's just the exact same thing I did in parallel.h, but for some
reason here it doesn't work?  C++ just doesn't like me today.
---
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