Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CPP11 header to define nullptr & constexpr (#5471)
This header permit to use nullptr & constexpr keywords in portable code segments and benefit from nullptr & constexpr when using C++11 and greater
- Loading branch information
Showing with 38 additions and 4 deletions.
There are no files selected for viewing
|@@ -0,0 +1,32 @@|
|Copyright (C) 2016 nerzhul, Loic Blot <email@example.com>|
|This program is free software; you can redistribute it and/or modify|
|it under the terms of the GNU Lesser General Public License as published by|
|the Free Software Foundation; either version 2.1 of the License, or|
|(at your option) any later version.|
|This program is distributed in the hope that it will be useful,|
|but WITHOUT ANY WARRANTY; without even the implied warranty of|
|MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the|
|GNU Lesser General Public License for more details.|
|You should have received a copy of the GNU Lesser General Public License along|
|with this program; if not, write to the Free Software Foundation, Inc.,|
|51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.|
|#if __cplusplus < 201103L || _MSC_VER < 1600|
|#define constexpr const|
|#define nullptr NULL|