Boost C++ Libraries: Ticket #3857: c4512 warning using signals2 with boost 1.41 on VS2005 https://svn.boost.org/trac10/ticket/3857 <p> I am using the signals2 library, and I get the following warnings with VS2005: </p> <p> Warning 1 warning C4512: 'boost::signals2::detail::signal1_impl&lt;R,T1,Combiner,Group,<a class="missing wiki">GroupCompare</a>,<a class="missing wiki">SlotFunction</a>,<a class="missing wiki">ExtendedSlotFunction</a>,Mutex&gt;::slot_invoker' : assignment operator could not be generated c:\boost\boost_1_41_0\boost\signals2\detail\signal_template.hpp 358 </p> <p> Warning 2 warning C4512: 'boost::signals2::detail::slot_call_iterator_cache&lt;<a class="missing wiki">ResultType</a>,Function&gt;' : assignment operator could not be generated c:\boost\boost_1_41_0\boost\signals2\detail\slot_call_iterator.hpp 44 </p> <p> Warning 3 warning C4512: 'boost::signals2::detail::signal1_impl&lt;R,T1,Combiner,Group,<a class="missing wiki">GroupCompare</a>,<a class="missing wiki">SlotFunction</a>,<a class="missing wiki">ExtendedSlotFunction</a>,Mutex&gt;::invocation_janitor' : assignment operator could not be generated c:\boost\boost_1_41_0\boost\signals2\detail\signal_template.hpp 412 </p> <p> Warning 4 warning C4512: 'boost::function_output_iterator&lt;<a class="missing wiki">UnaryFunction</a>&gt;::output_proxy' : assignment operator could not be generated c:\boost\boost_1_41_0\boost\function_output_iterator.hpp 40 </p> <p> I have my warning level set to 4. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3857 Trac 1.4.3 Frank Mori Hess Sat, 23 Jan 2010 17:34:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3857#comment:1 https://svn.boost.org/trac10/ticket/3857#comment:1 <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">invalid</span> </li> </ul> <p> Your compiler is generating spurious warnings. Those classes (excluding the last one which is not part of signals2 and I don't know about) don't need assignment operators. Feel free to open another ticket with a patch that silences the warnings if they bother you (perhaps by declaring private assignment operators in the classes?). </p> Ticket anonymous Thu, 23 Feb 2012 16:02:10 GMT <link>https://svn.boost.org/trac10/ticket/3857#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3857#comment:2</guid> <description> <p> It's two years and 7 versions later, and I'm still encountering this guys problem. </p> <p> Good work Boost. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 11 Jan 2013 11:13:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3857#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3857#comment:3</guid> <description> <p> Same here. Still encountering these. </p> <p> Turning the warning level down will silence them! Hope this helps. </p> </description> <category>Ticket</category> </item> </channel> </rss>