[libcxx-commits] [PATCH] D102121: [libcxx][ranges] adds _`non-propagating-cache`_
Arthur O'Dwyer via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 18 10:50:41 PDT 2021
Quuxplusone added a comment.
Please mention `[P2328]` in the summary line of the commit.
================
Comment at: libcxx/include/__ranges/non_propagating_cache.h:36
+ requires is_object_v<_Tp>
+ struct __non_propagating_cache : optional<_Tp> {
+ using optional<_Tp>::optional;
----------------
It would be vastly more maintainable to make `__non_propagating_cache` have a //data member// of type `optional<_Tp>`, instead of using inheritance here. Please do so. (If you don't, I probably will at some point.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102121/new/
https://reviews.llvm.org/D102121
More information about the libcxx-commits
mailing list