Opened 13 years ago

Closed 12 years ago

#3421 closed Bugs (fixed)

nullable and resize

Reported by: olafvdspek@… Owned by: Thorsten Ottosen
Milestone: Boost 1.41.0 Component: ptr_container
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:

Description

Please notice that nullable has no effect on the containers interface (except for is_null() functions).

It doesn't apear to affect the is_null() functions either.

ptr_vector::resize

Doesn't initialize elements if it enlarges the container. Doesn't appear to be efficient, as it adds one element at a time.

Change History (2)

comment:1 by olafvdspek, 13 years ago

My bad, turns out resize() allocates new elements, even if the container allows null values. This is unexpected behaviour and is poorly documented.

comment:2 by Thorsten Ottosen, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.