From 006f218392c990ed3d3ee1f0f690a083caa0d39e Mon Sep 17 00:00:00 2001 From: Stephen White Date: Wed, 5 Dec 2018 04:10:52 +0000 Subject: [PATCH] Use std::nullptr_t in place of nullptr_t. (It's not clear to me why only some projects/compilers are complaining but other parts of the code are using the explicit namespace.) Change-Id: I24b0c3b8104932b4ec82a25f5eb96c08abff87b5 Reviewed-on: https://dawn-review.googlesource.com/c/2901 Reviewed-by: Kai Ninomiya --- generator/templates/apicpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/templates/apicpp.h b/generator/templates/apicpp.h index 87bd71b5e7..f1d732c2cc 100644 --- a/generator/templates/apicpp.h +++ b/generator/templates/apicpp.h @@ -97,8 +97,8 @@ namespace dawn { return static_cast(*this); } - ObjectBase(nullptr_t) {} - Derived& operator=(nullptr_t) { + ObjectBase(std::nullptr_t) {} + Derived& operator=(std::nullptr_t) { if (mHandle != nullptr) { Derived::DawnRelease(mHandle); mHandle = nullptr;