Boost C++ Libraries: Ticket #10025: boost/variant/detail/initializer.hpp does not supress C4503 warnings https://svn.boost.org/trac10/ticket/10025 <p> After upgrading from 1.53, my project is littered with warning C4503. This warning is typically suppressed in boost/config/compiler/visualc.hpp, but it seems boost variant no longer uses said file. </p> <p> Compiled using VS2010 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10025 Trac 1.4.3 8th.realm@… Thu, 08 May 2014 18:52:05 GMT attachment set https://svn.boost.org/trac10/ticket/10025 https://svn.boost.org/trac10/ticket/10025 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">example.txt</span> </li> </ul> <p> Example of warnings seen </p> Ticket Chandler Scott <8th.realm@…> Thu, 08 May 2014 19:00:28 GMT cc set https://svn.boost.org/trac10/ticket/10025#comment:1 https://svn.boost.org/trac10/ticket/10025#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">8th.realm@…</span> added </li> </ul> Ticket Antony Polukhin Tue, 02 Dec 2014 17:06:28 GMT owner, status, milestone changed https://svn.boost.org/trac10/ticket/10025#comment:2 https://svn.boost.org/trac10/ticket/10025#comment:2 <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">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.58.0</span> </li> </ul> <p> <code>boost/config/compiler/visualc.hpp</code> is included via <code>boost/config.hpp</code> so this warning must be suppressed. </p> <p> Could you provide some test case to reproduce the error? </p> Ticket john.tytgat@… Thu, 07 Jan 2016 12:54:42 GMT <link>https://svn.boost.org/trac10/ticket/10025#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10025#comment:3</guid> <description> <p> FYI, we had exactly the same issue and after investigation it turned out this was because of some legacy hack in our codebase to suppress a C4244 warning when including boost/thread/mutex.hpp (which seems to longer be relevant with VS2013/boost 1.59): </p> <pre class="wiki">#pragma warning(push) #pragma warning(disable: 4244) #include &lt;boost/thread/mutex.hpp&gt; #pragma warning(pop) </pre><p> This made that the C4503 warning disable in boost/config.hpp got undone so that made we got those warnings back when include/using other boost components. Maybe the original ticket submitter had the same issue ? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Wed, 18 Jan 2017 19:51:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10025#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10025#comment:4</guid> <description> <p> Does the warning still appears? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Thu, 09 Feb 2017 20:16:59 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10025#comment:5 https://svn.boost.org/trac10/ticket/10025#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> A correct solution would be to fix that annoying behavior in the compiler. Otherwise it could be fixed by enabling variadic templates usage in boost::variant for MSVC. Unfortunately <a class="ext-link" href="https://ci.appveyor.com/project/apolukhin/variant/build/1.61.10-develop"><span class="icon">​</span>MSVC is not ready yet</a>. Waiting for next MSVC. </p> Ticket