OONumerics User :

From: Nguyen Xuan Son (nguyenxuanson_at_[hidden])
Date: 2006-01-17 10:18:06


Dear group readers,

I use the Barton-Nackman trick in my code, and I can compile it correctly
with Visual Studio 7.0 but have problem when trying to cmpile Sun Solaris
Compiler CC, the problem comes from the following line of code, the error is
"multiple decoration for PdeSolver2D". I hope that you have had a solution
for the problem otherwise I will have to recoding to remove the template.

class MYDERIVEDCLASS:public MYBASECLASS<MYDERIVEDCLASS>

{

    friend class MYBASECLASS;

....

}

Where I have define the base class as:

template<typename ADerivedSolver> class MYBASECLASS

{

...

}

Hope to hear from you soon.

Regards,

Xuan Son