This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] agent_expr_up: gdb::unique_ptr -> std::unique_ptr


On Wed, Nov 9, 2016 at 12:56 AM, Pedro Alves <palves@redhat.com> wrote:
>
> -  /* Vector owns pointers.  */
> -  std::vector<agent_expr *> m_aexprs;
> +  std::vector<std::unique_ptr<agent_expr>> m_aexprs;

Nit: s/std::unique_ptr<agent_expr>/agent_expr_up/ ?

The patch is good to me.

[Pretend having some C++ 11 knowledge after reading some pages
in "C++ Primer, fifth edition" for 20 minutes]

-- 
Yao (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]