C++ Logo


Advanced search

Subject: Re: [std-proposals] Proposal: Pattern Matching: Auto-dereference
From: Viktor Kireev (vitech-job_at_[hidden])
Date: 2020-02-06 03:18:30

On Monday, 3 February 2020 12:47:23 MSK Михаил Найденов via Std-Proposals
> Hello, I present a (draft) proposal, which argues auto-dereference is
> preferred over the dereference pattern in current Pattern Matching.

I think this is a useful and convenient feature.

I have two questions:
1. Who will decide which types can be implicitly dereferenced and which
2. What about std::weak_ptr?
std::weak_ptr<Rect> r;
inspect(r) {

Victor Kireev

STD-PROPOSALS list run by herb.sutter at gmail.com

Standard Proposals Archives on Google Groups