Boost C++ Libraries: Ticket #9279: Lack of min/max under VC12/VS2013 https://svn.boost.org/trac10/ticket/9279 <p> Missing min/max in boost/config/stdlib/dinkumware.hpp causes some libraries failed to build under vc12. The patch is in ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8750" title="#8750: Support Requests: VC12 support (closed: duplicate)">#8750</a>, <a class="ext-link" href="https://svn.boost.org/trac/boost/attachment/ticket/8750/for_vs2013.patch"><span class="icon">​</span>https://svn.boost.org/trac/boost/attachment/ticket/8750/for_vs2013.patch</a>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9279 Trac 1.4.3 John Maddock Mon, 21 Oct 2013 12:25:24 GMT <link>https://svn.boost.org/trac10/ticket/9279#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9279#comment:1</guid> <description> <p> Although I'm not necessarily against this patch - I'm a bit concerned about Boost.Config unconditionally including &lt;algorithm&gt;. If individual libraries are using functions like min/max without including that header, then they should be the ones patched IMO. This helps to keep Boost.Config's dependencies as small as possible. </p> </description> <category>Ticket</category> </item> <item> <author>gongminmin@…</author> <pubDate>Tue, 22 Oct 2013 05:29:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9279#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9279#comment:2</guid> <description> <p> Yes. In my test, the min/max only affect the Boost.Serialization. So add </p> <pre class="wiki">#if defined(_MSC_VER) &amp;&amp; (_MSC_VER &gt;= 1800) # include &lt;algorithm&gt; // for std::min and std::max #endif </pre><p> to boost\archive\iterators\transform_width.hpp also fix this problem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 22 Oct 2013 17:32:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9279#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9279#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86394" title="Refs #9279.">[86394]</a>) Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9279" title="#9279: Bugs: Lack of min/max under VC12/VS2013 (closed: fixed)">#9279</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 22 Oct 2013 17:33:30 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9279#comment:4 https://svn.boost.org/trac10/ticket/9279#comment:4 <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> Closing as Boost.Config is already patched for VC 2013. </p> Ticket John Maddock Tue, 22 Oct 2013 17:34:50 GMT <link>https://svn.boost.org/trac10/ticket/9279#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9279#comment:5</guid> <description> <p> Update: serialization is also already patched to include &lt;algorithm&gt;. </p> </description> <category>Ticket</category> </item> </channel> </rss>