Compatibility of checks done by 'Forte Developer 7' & 'Sun studio 9' C++ compilers
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Compatibility of checks done by 'Forte Developer 7' & 'Sun studio 9' C++ compilers




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Compatibility of checks done by 'Forte Developer 7' & 'Sun studio 9' C++ compilers  
qazmlp


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-21-05 11:00 PM

Following is one of the post which got un-answered in
comp.unix.solaris group earlier. I am re-posting it again hoping that
anybody who has moved from 'Sun Forte-7' to 'Sun Studio 9' should
certainly be able to help here. Thanks!

-----------------------------------------------------
I would like to know the compatibility of the checks done by the C++
compilers:
'Forte Developer 7' & 'Sun studio 9' C++ compilers.

When we moved from Sun WorkShop 6 to 'Forte Developer 7' C++ compiler,
it was required to do few modifications in the existing code for e.g.
having the same exception specification as the base class version, in
derived class version of the same function.

class base
{
public:
void test() throw(std::bad_alloc) ;

// Other parts of 'base'
};

class derived: public base
{
public:
/* Following compiled successfully with 'Sun WorkShop 6', but not
with 'Forte Developer 7' */
// void test();

/* It was required to do the following */
void test() throw(std::bad_alloc) ;

// Other parts of 'derived'
};


I fully agree that, we should write code which is 100% C++ standard
compatible to avoid any corrections based on compiler versions. But,
it may not be practically to cross-check this in a LSSD projects.

Hence, I would like to know the above information!
----------------------------------------------------





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:34 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register