On Mon, 11 Jul 2022 20:32:07 -0400
David Malcolm via Gcc wrote:
> Perhaps, but right now I prefer to spell out std::unique_ptr, since
> I'm not as comfortable with C++11 as I might be.
Hi David, [off list]
You might be interested to know Bjarne Stroustrup observes that during
the development of
On 2022-07-12 11:45 a.m., Jonathan Wakely wrote:
> On Tue, 12 Jul 2022 at 11:22, Florian Weimer via Gcc wrote:
>>
>> * Pedro Alves:
>>
>>> For example, for the type above, we'd have:
>>>
>>> typedef std::unique_ptr pending_diagnostic_up;
>>>
>>> and then:
>>>
>>> -
On 2022-07-12 11:21 a.m., Florian Weimer wrote:
> * Pedro Alves:
>
>> For example, for the type above, we'd have:
>>
>> typedef std::unique_ptr pending_diagnostic_up;
>>
>> and then:
>>
>> - pending_diagnostic *d,
>> + pending_diagnos
On Tue, 12 Jul 2022 at 11:22, Florian Weimer via Gcc wrote:
>
> * Pedro Alves:
>
> > For example, for the type above, we'd have:
> >
> > typedef std::unique_ptr pending_diagnostic_up;
> >
> > and then:
> >
> > -pending_diagnostic *d,
> > +
* Pedro Alves:
> For example, for the type above, we'd have:
>
> typedef std::unique_ptr pending_diagnostic_up;
>
> and then:
>
> -pending_diagnostic *d,
> +pending_diagnostic_up d,
>
> I would suggest GCC have a similar guideline
On Mon, 2022-07-11 at 11:56 +0100, Pedro Alves wrote:
> Hi!
>
> On 2022-07-08 9:46 p.m., David Malcolm via Gcc wrote:
> > - pending_diagnostic *d,
> > +
> > std::unique_ptr d,
>
> I see that you didn't add any typedef for std::un
Hi!
On 2022-07-08 9:46 p.m., David Malcolm via Gcc wrote:
> - pending_diagnostic *d,
> + std::unique_ptr d,
I see that you didn't add any typedef for std::unique_ptr in this patch.
It will be
inevitable that people will start addin
On Fri, 8 Jul 2022 at 21:47, David Malcolm via Gcc wrote:
>
> std::unique_ptr is C++11, and I'd like to use it in the gcc/analyzer
> subdirectory, at least. The following patch eliminates a bunch of
> "takes ownership" comments and manual "delete" invocations in favor
> of simply using std::uniqu
On 7/8/22 22:46, David Malcolm via Gcc wrote:
std::unique_ptr is C++11, and I'd like to use it in the gcc/analyzer
subdirectory, at least. The following patch eliminates a bunch of
"takes ownership" comments and manual "delete" invocations in favor
of simply using std::unique_ptr.
The problem i
std::unique_ptr is C++11, and I'd like to use it in the gcc/analyzer
subdirectory, at least. The following patch eliminates a bunch of
"takes ownership" comments and manual "delete" invocations in favor
of simply using std::unique_ptr.
The problem is that the patch makes use of std::make_unique,
10 matches
Mail list logo