boostorg / ptr_container

Boost.org ptr_container module
http://boost.org/libs/ptr_container
Boost Software License 1.0
13 stars 41 forks source link

ptr_vector::c_array is not compiling when boost::nullable is used in ptr_vector. #14

Closed moose-x86 closed 6 years ago

moose-x86 commented 6 years ago

Hi,

using c_array is not possible if boost::ptr_vector<boost::nullable>. Compile error is that "can not convert boost::nullable to int."

Br, Przemek

https://github.com/boostorg/ptr_container/blob/17c3d7ce79ca1756d1ab13c7f315cb90a51cd43f/include/boost/ptr_container/ptr_sequence_adapter.hpp#L539

eldiener commented 6 years ago

Please show a minimum code example where the compile error occurs.