Skip to content

Commit a7be936

Browse files
committed
Address shadow warning on some compilers
1 parent f508071 commit a7be936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/json2cpp/constexpr_json.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ struct json
181181
// find_if is not constexpr in C++17, so we rolled our own,
182182
// and this helps us work around bugs in older versions of GCC
183183
// and constexpr
184-
const auto find = [&]() {
184+
const auto finder = [&]() {
185185
auto itr = children.begin();
186186

187187
for (; itr != children.end(); ++itr) {
@@ -191,7 +191,7 @@ struct json
191191
return itr;
192192
};
193193

194-
const auto obj = find();
194+
const auto obj = finder();
195195

196196
if (obj != children.end()) {
197197
return obj->second;

0 commit comments

Comments
 (0)