|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67781 - trunk/libs/chrono/test/duration
From: vicente.botet_at_[hidden]
Date: 2011-01-08 09:47:05
Author: viboes
Date: 2011-01-08 09:47:04 EST (Sat, 08 Jan 2011)
New Revision: 67781
URL: http://svn.boost.org/trac/boost/changeset/67781
Log:
Boost.Chrono: Change to get info on compile failure
Test output: Sandia-sun - chrono - duration_cast_pass_shared / sun-5.10
Rev 67766 / Sat, 8 Jan 2011 01:15:34 +0000
Report Time: Sat, 8 Jan 2011 12:49:04 +0000
Compile [2011-01-08 02:06:04 UTC]: fail
"/opt/sunstudio12.1/bin/CC" +d -library=stlport4 -features=tmplife -features=tmplrefstatic -g -erroff=%none -m64 -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_CHRONO_USES_MPL_ASSERT -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_TYPEOF_EMULATION -DBOOST_USE_WINDOWS_H -I".." -c -o "/scratch2/kbelco/boost/results/boost/bin.v2/libs/chrono/test/duration_cast_pass_shared.test/sun-5.10/debug/address-model-64/stdlib-sun-stlport/duration/duration_cast_pass.o" "../libs/chrono/test/duration/duration_cast_pass.cpp"
"../libs/chrono/test/duration/duration_cast_pass.cpp", line 30: Error: Could not find a match for mpl_::assertion_failed<mpl_::C>(mpl_::failed************(NOTHING::*)()***********) needed in test<boost::chrono::duration<int, boost::ratio<3600, 1>>, boost::chrono::duration<long long, boost::ratio<1, 1000>>>(const boost::chrono::duration<long long, boost::ratio<1, 1000>>&, const boost::chrono::duration<int, boost::ratio<3600, 1>>&).
"../libs/chrono/test/duration/duration_cast_pass.cpp", line 36: Where: While instantiating "test<boost::chrono::duration<int, boost::ratio<3600, 1>>, boost::chrono::duration<long long, boost::ratio<1, 1000>>>(const boost::chrono::duration<long long, boost::ratio<1, 1000>>&, const boost::chrono::duration<int, boost::ratio<3600, 1>>&)".
"../libs/chrono/test/duration/duration_cast_pass.cpp", line 36: Where: Instantiated from non-template code.
"../libs/chrono/test/duration/duration_cast_pass.cpp", line 30: Error: Could not find a match for mpl_::assertion_failed<mpl_::C>(mpl_::failed************(NOTHING::*)()***********) needed in test<boost::chrono::duration<int, boost::ratio<3600, 1>>, boost::chrono::duration<long long, boost::ratio<1, 1000>>>(const boost::chrono::duration<long long, boost::ratio<1, 1000>>&, const boost::chrono::duration<int, boost::ratio<3600, 1>>&).
"../libs/chrono/test/duration/duration_cast_pass.cpp", line 36: Where: While instantiating "test<boost::chrono::duration<int, boost::ratio<3600, 1>>, boost::chrono::duration<long long, boost::ratio<1, 1000>>>(const boost::chrono::duration<long long, boost::ratio<1, 1000>>&, const boost::chrono::duration<int, boost::ratio<3600, 1>>&)".
"../libs/chrono/test/duration/duration_cast_pass.cpp", line 36: Where: Instantiated from non-template code.
2 Error(s) detected.
TinyUrl
Text files modified:
trunk/libs/chrono/test/duration/duration_cast_pass.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/chrono/test/duration/duration_cast_pass.cpp
==============================================================================
--- trunk/libs/chrono/test/duration/duration_cast_pass.cpp (original)
+++ trunk/libs/chrono/test/duration/duration_cast_pass.cpp 2011-01-08 09:47:04 EST (Sat, 08 Jan 2011)
@@ -27,7 +27,7 @@
#else
typedef decltype(boost::chrono::duration_cast<ToDuration>(f)) R;
#endif
- BOOST_CHRONO_STATIC_ASSERT((boost::is_same<R, ToDuration>::value), NOTHING, ());
+ BOOST_CHRONO_STATIC_ASSERT((boost::is_same<R, ToDuration>::value), NOTHING, (R, ToDuration));
BOOST_TEST(boost::chrono::duration_cast<ToDuration>(f) == d);
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk