[Boost-bugs] [Boost C++ Libraries] #6243: Sandia-pgi-11.9: moren than one instance of overloaded function "min" matches

Subject: [Boost-bugs] [Boost C++ Libraries] #6243: Sandia-pgi-11.9: moren than one instance of overloaded function "min" matches
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-08 23:19:22


#6243: Sandia-pgi-11.9: moren than one instance of overloaded function "min"
matches
------------------------------+---------------------------------------------
 Reporter: viboes | Owner: viboes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: chrono
  Version: Boost 1.48.0 | Severity: Not Applicable
 Keywords: |
------------------------------+---------------------------------------------
 From the regression tests for trunk

 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

 Compile [2011-12-05 18:17:11 UTC]: fail

     "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__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"

 "../libs/chrono/test/../example/min_time_point.cpp", line 63: error: more
 than
           one instance of overloaded function "min" matches the argument
 list:
             function template
                       "boost::common_type<boost::chrono::time_point<Clock,
                       Duration1>, boost::chrono::time_point<Clock,
 Duration2>,
                       void>::type min(boost::chrono::time_point<Clock,
                       Duration1>, boost::chrono::time_point<Clock,
 Duration2>)"
             function template "const _Tp &std::min(const _Tp &, const _Tp
 &)"
             argument types are: (T1, T2)
       /*auto*/ T3 t3 = (min)(t1, t2);

 It seems that this compiler is introducing the std namespace without
 adding a using namespace std;

 To workaround the issue I will add a my_ns namesapce for the defined min
 function.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6243>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC