kernel/kernel_cpp: Change nothrow_t syntax for gcc6+

* Fix for explicit constructor change.
  https://github.com/gcc-mirror/gcc/commit/a3f25f0f

Change-Id: I330ad9c3bff1d7f3e0284f3dcda86e17d974c57d
This commit is contained in:
Alexander von Gluck IV 2018-05-20 11:22:40 -05:00
parent 54d72f0643
commit 172c944a5b

View File

@ -31,7 +31,9 @@
// ... it doesn't seem to work with this symbol at least. // ... it doesn't seem to work with this symbol at least.
#ifndef USING_LIBGCC #ifndef USING_LIBGCC
# if __GNUC__ >= 3 # if __GNUC__ >= 6
const std::nothrow_t std::nothrow = std::nothrow_t{ };
# elif __GNUC__ >= 3
const std::nothrow_t std::nothrow = {}; const std::nothrow_t std::nothrow = {};
# else # else
const nothrow_t std::nothrow = {}; const nothrow_t std::nothrow = {};