Boost C++ Libraries: Ticket #13340: ptr_vector::c_array is not compiling when boost::nullable is used. https://svn.boost.org/trac10/ticket/13340 <p> Hi, </p> <p> Using c_array() when nullable is in interface, triggers compile error. Fallowing code is not compiling. </p> <pre class="wiki">boost::ptr_vector&lt;boost::nullable&lt;int&gt;&gt; p; p.c_array(); //compile error </pre><p> It looks like inside c_array reinterpret_cast should to <code>value_type*</code> not <code>T**</code>. </p> <pre class="wiki">T** res = reinterpret_cast&lt;T**&gt;( &amp;this-&gt;begin().base()[0] ); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13340 Trac 1.4.3