On Wed, 23 Jan 2008, Derek Gaston wrote:
Sure you can... I do it with some of my classes in my code like this....
In something.h:
template<class T>
class Something
{
T doSomething();
};
template<>
double Something<double>::doSomething();
The situation here's a little more complicated.
This works:
template<>
Real DistributedVector<std::complex<double> >::min () const {...}
This fails:
template<typename T>
Real DistributedVector<std::complex<T> >::min () const {...}
with:
error: invalid use of undefined type ‘class DistributedVector<std::complex<_Tp>
>’
---
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