C++ Logo

std-discussion

Advanced search

propagate_const for array-like types

From: Wilhelm Meier <wilhelm.meier_at_[hidden]>
Date: Fri, 25 Nov 2022 06:48:41 +0100
Hello all,

std::experimental::propagate_const is a wrapper to propagate const to
the pointer-to object for pointer-like types (e.g. std::unique_ptr<T>).

But it lacks of a specialization for array-like types (e.g.
std::unique_ptr<T[]>. Is that intentional or are there any other obstacles?

Thanks,
  Wilhelm

Received on 2022-11-25 05:48:53