|
From: Matthias S. <mat...@us...> - 2007-04-15 07:06:04
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29911/boost/units Modified Files: cmath.hpp Log Message: comment out llrint llround - not ISO C++ Index: cmath.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/cmath.hpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- cmath.hpp 29 Mar 2007 19:02:29 -0000 1.3 +++ cmath.hpp 15 Apr 2007 07:06:03 -0000 1.4 @@ -282,29 +282,31 @@ return quantity_type::from_value(hypot BOOST_PREVENT_MACRO_SUBSTITUTION (q1.value(),q2.value())); } -template<class Unit,class Y> -inline -quantity<Unit,long long> -llrint BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q) -{ - using namespace detail; - - typedef quantity<Unit,long long> quantity_type; - - return quantity_type::from_value(llrint BOOST_PREVENT_MACRO_SUBSTITUTION (q.value())); -} - -template<class Unit,class Y> -inline -quantity<Unit,long long> -llround BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q) -{ - using namespace detail; +// does ISO C++ support long long? g++ claims not +//template<class Unit,class Y> +//inline +//quantity<Unit,long long> +//llrint BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q) +//{ +// using namespace detail; +// +// typedef quantity<Unit,long long> quantity_type; +// +// return quantity_type::from_value(llrint BOOST_PREVENT_MACRO_SUBSTITUTION (q.value())); +//} - typedef quantity<Unit,long long> quantity_type; - - return quantity_type::from_value(llround BOOST_PREVENT_MACRO_SUBSTITUTION (q.value())); -} +// does ISO C++ support long long? g++ claims not +//template<class Unit,class Y> +//inline +//quantity<Unit,long long> +//llround BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q) +//{ +// using namespace detail; +// +// typedef quantity<Unit,long long> quantity_type; +// +// return quantity_type::from_value(llround BOOST_PREVENT_MACRO_SUBSTITUTION (q.value())); +//} template<class Unit,class Y> inline |