N
nguyenxuanson
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 C/C++. The problem comes from the following line
of code, the error is "multiple decoration for MYBASECLASS". I hope
that you have had a solution for the problem otherwise I will have to
recoding to remove the template.
class MYDERIVEDCLASSublic MYBASECLASS<MYDERIVEDCLASS> {
friend class MYBASECLASS;
}
Where I have define MYBASECLASS as:
template<typename ADerivedSolver> class MYBASECLASS{}
Hope to hear from you soon.
Regards,
Xuan Son
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 C/C++. The problem comes from the following line
of code, the error is "multiple decoration for MYBASECLASS". I hope
that you have had a solution for the problem otherwise I will have to
recoding to remove the template.
class MYDERIVEDCLASSublic MYBASECLASS<MYDERIVEDCLASS> {
friend class MYBASECLASS;
}
Where I have define MYBASECLASS as:
template<typename ADerivedSolver> class MYBASECLASS{}
Hope to hear from you soon.
Regards,
Xuan Son