|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67670 - trunk/libs/ratio/test/ratio_extensions
From: vicente.botet_at_[hidden]
Date: 2011-01-05 01:50:47
Author: viboes
Date: 2011-01-05 01:50:17 EST (Wed, 05 Jan 2011)
New Revision: 67670
URL: http://svn.boost.org/trac/boost/changeset/67670
Log:
Boost.Ratio: Try to solve intel issues
Text files modified:
trunk/libs/ratio/test/ratio_extensions/mpl_plus_pass.cpp | 16 ++++++++++------
trunk/libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp | 4 ++++
2 files changed, 14 insertions(+), 6 deletions(-)
Modified: trunk/libs/ratio/test/ratio_extensions/mpl_plus_pass.cpp
==============================================================================
--- trunk/libs/ratio/test/ratio_extensions/mpl_plus_pass.cpp (original)
+++ trunk/libs/ratio/test/ratio_extensions/mpl_plus_pass.cpp 2011-01-05 01:50:17 EST (Wed, 05 Jan 2011)
@@ -20,6 +20,8 @@
#define NOTHING ""
#endif
+void test();
+
void test()
{
{
@@ -71,20 +73,22 @@
typedef boost::mpl::plus<R1, R2, R3> R;
BOOST_RATIO_STATIC_ASSERT(R::num == 127970191639601LL && R::den == 5177331081415LL, NOTHING, ());
}
- //~ {
- //~ typedef boost::ratio<BOOST_RATIO_INTMAX_C(0x7FFFFFFFFFFFFFFF), 1> R1;
- //~ typedef boost::ratio<-1, 1> R2;
- //~ typedef boost::mpl::int_<0> R3;
- //~ typedef boost::mpl::plus<R1, R2, R3>::type RT;
- //~ }
+ {
+ typedef boost::ratio<BOOST_RATIO_INTMAX_C(0x7FFFFFFFFFFFFFFF), 1> R1;
+ typedef boost::ratio<-1, 1> R2;
+ typedef boost::mpl::int_<0> R3;
+ typedef boost::mpl::plus<R1, R2, R3>::type RT;
+ }
}
+boost::intmax_t func(boost::ratio<5,6> s);
boost::intmax_t func(boost::ratio<5,6> s) {
return s.num;
}
+boost::intmax_t test_conversion();
boost::intmax_t test_conversion() {
return func(
boost::mpl::plus<
Modified: trunk/libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp
==============================================================================
--- trunk/libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp (original)
+++ trunk/libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp 2011-01-05 01:50:17 EST (Wed, 05 Jan 2011)
@@ -8,10 +8,14 @@
#include <boost/ratio.hpp>
#include <boost/detail/lightweight_test.hpp>
+boost::intmax_t func(boost::ratio<5,6> s);
+
boost::intmax_t func(boost::ratio<5,6> s) {
return s.num;
}
+void test();
+
void test() {
boost::ratio<10,12> r;
BOOST_TEST((
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