Oh... I supposed we were talking about libraries...
If you executable linked somehow to another GPL executable, then nothing should occur because you're not using the GPL code anywhere in yours.
The problem arrives with GPL libraries, which make you include the header file and thus, you're including code that's not yours.
OK, I was mistaken: the C++ Standard Library is GPL + linking exception:
Code:
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// the GNU General Public License. This exception does not however
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
So, if you just use the library as a dynamic or static library, you are free to place your terms. The last line seems just to be a preemptive protection.
The obvious question to the GNU guys: Why haven't you used LGPL instead, as in the C Standard Library??
Bookmarks