Boost C++ Libraries: Ticket #6243: Sandia-pgi-11.9: more than one instance of overloaded function "min" matches https://svn.boost.org/trac10/ticket/6243 <p> From the regression tests for trunk </p> <p> Test output: Sandia-pgi-11.9 - chrono - min_time_point_header / pgi-11.9 Rev 75813 / Mon, 5 Dec 2011 16:37:47 +0000 Report Time: Thu, 8 Dec 2011 20:28:27 +0000 </p> <p> Compile [2011-12-05 18:17:11 UTC]: fail </p> <blockquote> <p> "pgCC" -INLINE:none -Kieee -fpic -fPIC -gopt -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING -DBOOST_CHRONO_HEADER_ONLY -DBOOST_CHRONO_USES_MPL_ASSERT -DBOOST_CHRONO_VERSION=2 -DBOOST_SYSTEM_NO_DEPRECATED -D<span class="underline">need_IOV_MAX -I".." -c -o "/scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/test/min_time_point_header.test/pgi-11.9/debug/min_time_point.o" "../libs/chrono/test/../example/min_time_point.cpp" </span></p> </blockquote> <p> "../libs/chrono/test/../example/min_time_point.cpp", line 63: error: more than </p> <blockquote> <p> one instance of overloaded function "min" matches the argument list: </p> <blockquote> <p> function template </p> <blockquote> <p> "boost::common_type&lt;boost::chrono::time_point&lt;Clock, Duration1&gt;, boost::chrono::time_point&lt;Clock, Duration2&gt;, void&gt;::type min(boost::chrono::time_point&lt;Clock, Duration1&gt;, boost::chrono::time_point&lt;Clock, Duration2&gt;)" </p> </blockquote> <p> function template "const _Tp &amp;std::min(const _Tp &amp;, const _Tp &amp;)" argument types are: (T1, T2) </p> </blockquote> </blockquote> <blockquote> <p> /*auto*/ T3 t3 = (min)(t1, t2); </p> </blockquote> <p> It seems that this compiler is introducing the std namespace without adding a using namespace std; </p> <p> To workaround the issue I will add a my_ns namesapce for the defined min function. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6243 Trac 1.4.3 viboes Thu, 08 Dec 2011 23:30:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6243#comment:1 https://svn.boost.org/trac10/ticket/6243#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">fixed</span> </li> </ul> <p> Committed revision <a class="missing ticket">#75867</a>. </p> Ticket viboes Mon, 12 Dec 2011 21:51:21 GMT summary changed https://svn.boost.org/trac10/ticket/6243#comment:2 https://svn.boost.org/trac10/ticket/6243#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">Sandia-pgi-11.9: moren than one instance of overloaded function "min" matches</span> → <span class="trac-field-new">Sandia-pgi-11.9: more than one instance of overloaded function "min" matches</span> </li> </ul> Ticket viboes Mon, 12 Dec 2011 21:56:50 GMT milestone changed https://svn.boost.org/trac10/ticket/6243#comment:3 https://svn.boost.org/trac10/ticket/6243#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.49.0</span> </li> </ul> <p> Committed revision <a class="missing ticket">#75922</a>. </p> Ticket anonymous Sun, 24 Feb 2013 17:44:20 GMT attachment set https://svn.boost.org/trac10/ticket/6243 https://svn.boost.org/trac10/ticket/6243 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">templates.txt</span> </li> </ul> Ticket