Boost C++ Libraries: Ticket #3020: warning using boost::variant<boost::mpl_::void_> https://svn.boost.org/trac10/ticket/3020 <p> Using VC8, get compile warning C4345: </p> <p> \boost\variant\variant.hpp(1174) : warning C4345: behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3020 Trac 1.4.3 Yun Zhang <yun.zhang@…> Tue, 12 May 2009 21:24:50 GMT attachment set https://svn.boost.org/trac10/ticket/3020 https://svn.boost.org/trac10/ticket/3020 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">a.cpp</span> </li> </ul> Ticket Yun Zhang <yun.zhang@…> Tue, 12 May 2009 21:25:48 GMT owner, component changed https://svn.boost.org/trac10/ticket/3020#comment:1 https://svn.boost.org/trac10/ticket/3020#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Hartmut Kaiser</span> to <span class="trac-author">ebf</span> </li> <li><strong>component</strong> <span class="trac-field-old">wave</span> → <span class="trac-field-new">variant</span> </li> </ul> Ticket Steven Watanabe Sun, 17 May 2009 03:24:22 GMT <link>https://svn.boost.org/trac10/ticket/3020#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3020#comment:2</guid> <description> <p> You can safely ignore this warning. Basically, the compiler is issuing a warning because it is compliant, where previous versions of msvc were not. </p> </description> <category>Ticket</category> </item> <item> <author>Yun Zhang <yun.zhang@…></author> <pubDate>Tue, 19 May 2009 20:40:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3020#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3020#comment:3</guid> <description> <p> Thanks for clarifying that the code is functional. </p> <p> Is there a possibility that the boost header will either suppress or avoid the warning in a later release? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Tue, 19 May 2009 21:37:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3020#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3020#comment:4</guid> <description> <p> I believe that VC9 doesn't generate this warning. It's unlikely to be suppressed in Boost in the near future, since warnings usually get low priority. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Thu, 10 Jun 2010 14:37:16 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3020#comment:5 https://svn.boost.org/trac10/ticket/3020#comment:5 <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">wontfix</span> </li> </ul> Ticket David Sankel <camior@…> Mon, 07 Mar 2011 22:13:22 GMT <link>https://svn.boost.org/trac10/ticket/3020#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3020#comment:6</guid> <description> <p> This warning does show up in vc10. Solution would be to add a </p> <pre class="wiki">#ifdef _MSC_VER #pragma warning( push ) #pragma warning( disable : 4345 ) #endif </pre><p> at the top of variant.hpp and </p> <pre class="wiki">#ifdef _MSC_VER #pragma warning( pop ) #endif </pre><p> at the bottom. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Michael Caisse</dc:creator> <pubDate>Wed, 07 Dec 2011 01:52:01 GMT</pubDate> <title>status, version, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/3020#comment:7 https://svn.boost.org/trac10/ticket/3020#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost 1.48.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">wontfix</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.40.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> Please see David Sankel's <a class="ticket" href="https://svn.boost.org/trac10/ticket/3020#comment:6" title="Comment 6">comment:6</a> above. </p> <p> Problem has resurfaced in VC10. Just love warnings letting me know that they are doing the right thing. </p> Ticket Antony Polukhin Thu, 26 Sep 2013 07:46:26 GMT <link>https://svn.boost.org/trac10/ticket/3020#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3020#comment:8</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85928" title="Fix MSVC warning in Boost.Variant (refs #3020)">[85928]</a>) Fix MSVC warning in Boost.Variant (refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3020" title="#3020: Bugs: warning using boost::variant&lt;boost::mpl_::void_&gt; (closed: fixed)">#3020</a>) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Thu, 26 Sep 2013 07:46:51 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/3020#comment:9 https://svn.boost.org/trac10/ticket/3020#comment:9 <ul> <li><strong>owner</strong> changed from <span class="trac-author">ebf</span> to <span class="trac-author">Antony Polukhin</span> </li> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket Antony Polukhin Mon, 18 Nov 2013 11:53:54 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/3020#comment:10 https://svn.boost.org/trac10/ticket/3020#comment:10 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> <p> In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86650" title="Merge from trunk: * dropped support of antique compilers * fixed issue ...">[86650]</a> fix for this issue was merged to release branch. </p> Ticket