Jump to content
  • Advertisement
Sign in to follow this  
Etherstar

Visual C++ keyword: abstract

This topic is 4526 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It's been a while since I've used C++ and I came across something strange when using VC++ Express. I am implementing an ADT, and have been of the opinion that to do so would require just making one of the class's methods a pure virtual function. Then when messing around with VC++ I noticed I could add a keyword called abstract (like in java or C#) that acts as an attribute to make the class an ADT. My question here is, is the abstract keyword now ANSI compliant, and I have missed this addition to C++? Or is this a Microsoft invention to make things a little more clearly defined for a developer? My concern is because I am trying to maintain cross compatability with my program. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
This is part of the C++/CLI language. Microsoft has extended its usage so that it is now supported by unmanaged components as well. However, for maximum portability (between compilers) it is recommended that you stick to the traditional method of defining abstract methods.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!