New issue
Advanced search Search tips

Issue 819320 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , iOS , Chrome , Mac , Fuchsia
Pri: 3
Type: Task



Sign in to add a comment

Amend json_schema_compiler to use base::Optional on optional fields

Reported by claudiom...@gmail.com, Mar 6 2018

Issue description

Currently, whenever an optional field is found in an idl (e.g. long? id) the resulting C++ code will use a std::unique_ptr<T>. This clearly results in a heap allocation.

We should be using base::Optional for that. We also need to update the consumers of these values for the semantics of base::Optional.
 
Components: Internals>Core
Labels: -Type-Bug OS-Android OS-Chrome OS-Fuchsia OS-iOS OS-Linux OS-Windows Type-Task
I have already started working on this bug.
Status: Available (was: Unconfirmed)
Mac triage: marking this bug as Available instead of Unconfirmed. I can't assign it to an @gmail.com address.
That's alright ellyjones... I'm about to push this CL soon.

Sign in to add a comment