libstdc++: avoid -Wzero-as-null-pointer-constant
libstdc++-v3/ChangeLog: * include/std/coroutine (coroutine_handle): Use nullptr instead of 0 as initializer for _M_fr_ptr.
This commit is contained in:
parent
5974da3dfb
commit
28f94bf91a
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
{
|
||||
public:
|
||||
// [coroutine.handle.con], construct/reset
|
||||
constexpr coroutine_handle() noexcept : _M_fr_ptr(0) {}
|
||||
constexpr coroutine_handle() noexcept : _M_fr_ptr(nullptr) {}
|
||||
|
||||
constexpr coroutine_handle(std::nullptr_t __h) noexcept
|
||||
: _M_fr_ptr(__h)
|
||||
|
|
Loading…
Add table
Reference in a new issue