HomePhabricator

CWG1423: don't permit implicit conversion of nullptr_t to bool.

Authored by rsmith on Tue, Feb 11, 6:09 AM.

Description

CWG1423: don't permit implicit conversion of nullptr_t to bool.

The C++ rules briefly allowed this, but the rule changed nearly 10 years
ago and we never updated our implementation to match. However, we've
warned on this by default for a long time, and no other compiler accepts
(even as an extension).

Details

Committed
rsmithTue, Feb 11, 6:52 AM
Parents
rG7ef45f45f672: P1957R2: conversion from a pointer to bool is considered narrowing.
Branches
Unknown
Tags
Unknown