Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is new C++ backward compatible

Tags:

c++

I haven't coded in C++ for years. I recently discovered that during those years it has changed quite dramatically. I'm not sure I like the changes, but that's another discussion.

I still have some C++ code knocking around my hard drive. If I got it out and tried to compile it with a nice new C++ compiler, say the latest version of g++, would it compile? Without warnings (assuming it compiled without warnings before)?

I did get to mess around with a little VC++ 2010 recently and found some things I expected to work just not working, and got different messages depending on context when I tried to use NULL. But in one part of that code I used NULL without even a warning.

like image 624
AlastairG Avatar asked Dec 01 '10 15:12

AlastairG


People also ask

What is backward compatibility?

Backward compatibility is a property of a system, product, or technology that allows for interoperability with an older legacy system, or with input designed for such a system, especially in telecommunications and computing.

Is USB C backwards compatible with old USB ports?

Backwards Compatability. The physical USB-C connector isn’t backwards compatible, but the underlying USB standard is. You can’t plug older USB devices into a modern, tiny USB-C port, nor can you connect a USB-C connector into an older, larger USB port. But that doesn’t mean you have to discard all your old peripherals.

Is USB-C backwards compatible?

The physical USB-C connector isn’t backwards compatible, but the underlying USB standard is. You can’t plug older USB devices into a modern, tiny USB-C port, nor can you connect a USB-C connector into an older, larger USB port. But that doesn’t mean you have to discard all your old peripherals.

Is the GameCube backward compatible?

The GameCube 's successor, the Wii, employs backward compatibility with the ability to play games designed for its predecessor and support its legacy controllers. All Nintendo handhelds, besides the Nintendo Switch and Nintendo DSi, following the Game Boy have at least one model that is backward compatible with its predecessor.


1 Answers

In general, yes it is backwards compatible. However, the devil is in the details. You likely will find things where conventions change, or specific libraries fall into or out of use.

like image 107
David Oneill Avatar answered Sep 25 '22 20:09

David Oneill