On Fri, 30 Apr 2010, Derek Gaston wrote:

> I thought about this... but I don't think there is a way.  I believe
> the signatures have to match exactly or the function pointer won't
> be accepted.

Ah, but that's what typecasts are for!

(joking!...)

> Could be wrong though...

I think the best you could do is overload the attachment methods, so
that one takes the first kind of function pointer and the other takes
the second, you store the two in different internal pointers, and then
at dispatch time you see which of the internal pointers are non-NULL.

Basically not worth it to avoid a tiny API compatibility breakage.
Especially when that breakage has the side benefit of punishing users
for not using DiffSystem.
(still joking! mostly! ...)
---
Roy

------------------------------------------------------------------------------
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to