ARMmbed / core-util

DEPRECATED: Mbed 3 utilities library
Other
12 stars 17 forks source link

Array: Initialisation of internal variables #67

Closed adbridge closed 8 years ago

adbridge commented 8 years ago

The following internals should be initialised to sensible defaults (in most cases 0) in the constructor.

_grow_capacity _alloc_traits _alignment _capacity _elements

bogdanm commented 8 years ago

The thing to decide here is if we keep the current double step initialization (constructor+init()) of all the containers in core-util. If we do (which I think is a good idea) we'll have to guard against cases when the user didn't call init before attempting an array operation.

ciarmcom commented 8 years ago

ARM Internal Ref: IOTSFW-2002

0xc0170 commented 8 years ago

73 fixes this, class member initializers were added