Boost C++ Libraries: Ticket #1748: [ptr_container] compiler warnings from VC9 https://svn.boost.org/trac10/ticket/1748 <p> running the ptr_container tests on VC9 with warning level 4 produces quite a few warnings: </p> <pre class="wiki">boost/ptr_container/ptr_array.hpp(39) : warning C4100: 'a' : unreferenced formal parameter boost/ptr_container/detail/serialize_reversible_cont.hpp(69) : warning C4100: 'version' : unreferenced formal parameter boost/ptr_container/detail/serialize_ptr_map_adapter.hpp(20) : warning C4100: 'version' : unreferenced formal parameter boost/ptr_container/detail/serialize_ptr_map_adapter.hpp(38) : warning C4100: 'version' : unreferenced formal parameter boost/ptr_container/detail/serialize_ptr_map_adapter.hpp(61) : warning C4100: 'version' : unreferenced formal parameter boost/ptr_container/serialize_ptr_vector.hpp(19) : warning C4100: 'version' : unreferenced formal parameter boost/ptr_container/serialize_ptr_array.hpp(19) : warning C4100: 'version' : unreferenced formal parameter boost/ptr_container/serialize_ptr_array.hpp(25) : warning C4100: 'version' : unreferenced formal parameter boost/ptr_container/clone_allocator.hpp(77) : warning C4100: 'r' : unreferenced formal parameter boost/ptr_container/ptr_map_adapter.hpp(134) : warning C4127: conditional expression is constant boost/ptr_container/detail/map_iterator.hpp(50) : warning C4512: 'boost::ptr_container_detail::ref_pair&lt;F,S&gt;' : assignment operator could not be generated boost/ptr_container/ptr_map_adapter.hpp(156) : warning C4512: 'boost::ptr_container_detail::ptr_map_adapter_base&lt;T,VoidPtrMap,CloneAllocator&gt;::eraser' : assignment operator could not be generated </pre><p> The attached patch silences the 4100/4512 warnings for me. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1748 Trac 1.4.3 Richard Webb <richard.webb@…> Tue, 01 Apr 2008 21:58:49 GMT attachment set https://svn.boost.org/trac10/ticket/1748 https://svn.boost.org/trac10/ticket/1748 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ptr_container.patch</span> </li> </ul> Ticket Richard Webb <richard.webb@…> Tue, 01 Apr 2008 22:03:06 GMT <link>https://svn.boost.org/trac10/ticket/1748#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1748#comment:1</guid> <description> <p> Theres also a few warnings from the tests themselves. </p> <pre class="wiki">serialization.cpp(98) : warning C4100: 'n' : unreferenced formal parameter serialization.cpp(76) : warning C4100: 'version' : unreferenced formal parameter serialization.cpp(51) : warning C4100: 'version' : unreferenced formal parameter libs\ptr_container\test\test_data.hpp(243) : warning C4100: 'r' : unreferenced formal parameter libs\ptr_container\test\test_data.hpp(70) : warning C4100: 'b' : unreferenced formal parameter libs\ptr_container\test\test_data.hpp(95) : warning C4100: 'out' : unreferenced formal parameter </pre><p> Seperate patch attached. </p> </description> <category>Ticket</category> </item> <item> <author>Richard Webb <richard.webb@…></author> <pubDate>Tue, 01 Apr 2008 22:03:16 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/1748 https://svn.boost.org/trac10/ticket/1748 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ptr_container_src.patch</span> </li> </ul> Ticket Thorsten Ottosen Thu, 12 Jun 2008 11:10:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1748#comment:2 https://svn.boost.org/trac10/ticket/1748#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Applied. </p> <p> Thanks </p> <p> -Thorsten </p> Ticket asdasd Thu, 19 May 2011 13:08:11 GMT <link>https://svn.boost.org/trac10/ticket/1748#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1748#comment:3</guid> <description> <p> Warning </p> <pre class="wiki">boost/ptr_container/detail/map_iterator.hpp(50) : warning C4512: 'boost::ptr_container_detail::ref_pair&lt;F,S&gt;' : assignment operator could not be generated </pre><p> is still available. I tried to add no-compilable method operator= to ref_pair structure and it does work. </p> </description> <category>Ticket</category> </item> </channel> </rss>