C++ versions and C++ compilers

This is more of a sanity check.

So there are c++ versions (I.E. C++14 or C++11) and there are different compilers.


So two compilers maybe both following the standards of C++11, but that doesn't mean that some code compiled from one C++11 compiler will compile in a different c++11 compiler.
closed account (E0p9LyTq)
I use two different C++11 compilers, Visual C++ 2015 and GCC 4.9.2. There are at least one feature in C++11 that compile in both, but only work when compiled with VC++. std::random_device

When compiled with GCC 4.9.2 the exact same sequence of random numbers are generated every time.
Last edited on
Interesting. Cool!
That really depends.

Are both compilers completely compliant with the C++11 standard?

Are you only using standard C++ features available with that version of the standard?

Are you using any optional C++ standard features?

Are you using any implementation defined features?

If both compilers are completely compliant with the C++ standard, you're not using any optional C++ standard features or any implementation defined features the code should compile with either compiler.


Topic archived. No new replies allowed.