#6243 closed Bugs (fixed)
Sandia-pgi-11.9: more than one instance of overloaded function "min" matches
Reported by: | viboes | Owned by: | viboes |
---|---|---|---|
Milestone: | Boost 1.49.0 | Component: | chrono |
Version: | Boost 1.48.0 | Severity: | Not Applicable |
Keywords: | Cc: |
Description
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 -Dneed_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.
Attachments (1)
Change History (4)
comment:1 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 11 years ago
Summary: | Sandia-pgi-11.9: moren than one instance of overloaded function "min" matches → Sandia-pgi-11.9: more than one instance of overloaded function "min" matches |
---|
by , 10 years ago
Attachment: | templates.txt added |
---|
Committed revision #75867.