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;