C++ issues

There are cases where a C++ program will compile and run fine under one environment, and then fail to compile using a different compiler. Some caveats are given below, from experience with the GNU C++ compiler (GCC) and MS C/C++ compiler version 7.

Templates

Definition of constructors

Pointers to functions

Precompiled headers