mirror of
https://github.com/boostorg/ratio.git
synced 2025-05-09 23:24:01 +00:00
Boost.Ratio: Try to solve issue
Test output: Sandia-intel-10.1-32 - ratio - ratio_ext_pass / intel-linux-10.1 Rev 67645 / Tue, 4 Jan 2011 03:00:36 +0000 Report Time: Tue, 4 Jan 2011 14:18:10 +0000 Compile [2011-01-04 04:29:53 UTC]: fail "/usr/local/intel/cc/10.1.015/bin/icpc" -c -xc++ -O0 -g -w2 -inline-level=0 -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_ENABLE_WARNINGS -DBOOST_MPL_NEXT_PRIOR_EXT -DBOOST_RATIO_USES_MPL_ASSERT -I".." -c -o "/scratch/boost/results/boost/bin.v2/libs/ratio/test/ratio_ext_pass.test/intel-linux-10.1/debug/link-static/threading-multi/ratio_extensions/ratio_ext_pass.o" "../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp" ../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp(11): remark #1418: external function definition with no prior declaration boost::intmax_t func(boost::ratio<5,6> s) { ^ ../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp(15): remark #1418: external function definition with no prior declaration void test() { ^ ../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp(16): internal error: assertion failed: copy_template_param_expr: bad expression kind (shared/edgcpfe/il.c, line 12561) BOOST_TEST(( ^ compilation aborted for ../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp (code 4) [SVN r67650]
This commit is contained in:
parent
0d9fb755ad
commit
08a7d8b0b8
@ -13,8 +13,9 @@ boost::intmax_t func(boost::ratio<5,6> s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void test() {
|
void test() {
|
||||||
|
boost::ratio<10,12> r;
|
||||||
BOOST_TEST((
|
BOOST_TEST((
|
||||||
func(boost::ratio<10,12>() )==5
|
func(r)==5
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user