]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[libc++] Rename __bit_reference template parameter to avoid conflict
authorDimitry Andric <dim@FreeBSD.org>
Mon, 5 Feb 2024 11:41:51 +0000 (12:41 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 6 Apr 2024 20:14:03 +0000 (22:14 +0200)
commit868ee3f2855615016ba87c14b9444c18a2e1ba30
treebc43ac7bb628785f419759c0b256e5dd4d011e2c
parentdc36515b628331e03ac8c23a6749f7f3eb1ebec8
[libc++] Rename __bit_reference template parameter to avoid conflict

As of 4d20cfcf4eb08217ed37c4d4c38dc395d7a66d26, `__bit_reference`
contains a template `__fill_n` with a bool `_FillValue` parameter.

Unfortunately there is a relatively widely used piece of scientific
software called NetCDF, which exposes a (C) macro `_FillValue` in its
public headers.

When building the NetCDF C++ bindings, this quickly leads to compilation
errors when the macro interferes with the template in `__bit_reference`.

Rename the parameter to `_FillVal` to avoid the conflict.

PR: 276104
MFC after: 1 month
contrib/llvm-project/libcxx/include/__bit_reference