Opened 5 years ago

#13340 new Bugs

ptr_vector::c_array is not compiling when boost::nullable is used.

Reported by: przemek.wos@… Owned by: Thorsten Ottosen
Milestone: To Be Determined Component: ptr_container
Version: Boost 1.62.0 Severity: Problem
Keywords: Cc:

Description

Hi,

Using c_array() when nullable is in interface, triggers compile error. Fallowing code is not compiling.

boost::ptr_vector<boost::nullable<int>> p;
p.c_array(); //compile error

It looks like inside c_array reinterpret_cast should to value_type* not T**.

T** res = reinterpret_cast<T**>( &this->begin().base()[0] );

Change History (0)

Note: See TracTickets for help on using tickets.