C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] End of the east const vs. const west war - auto type deduction for const.
From: Lyberta (lyberta_at_[hidden])
Date: 2019-08-22 19:51:00


>> I have a proposal referring to endless war between C++ programmers: east
>> const vs const west.
template <typename T>
using ptr_to = T*;

template <typename T>
using const_ptr_to = T* const;

template <typename T>
using ref_to = T&;




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

Standard Proposals Archives on Google Groups