mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
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
@ -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…
Reference in New Issue
Block a user