|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2008-05-26 17:08:54
Author: steven_watanabe
Date: 2008-05-26 17:08:54 EDT (Mon, 26 May 2008)
New Revision: 45791
URL: http://svn.boost.org/trac/boost/changeset/45791
Log:
Fixed unused variable warnings
Text files modified:
sandbox/units/boost/units/io.hpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: sandbox/units/boost/units/io.hpp
==============================================================================
--- sandbox/units/boost/units/io.hpp (original)
+++ sandbox/units/boost/units/io.hpp 2008-05-26 17:08:54 EDT (Mon, 26 May 2008)
@@ -61,15 +61,15 @@
}
// get string representation of integral-valued @c static_rational
-template<integer_type N> std::string to_string(const static_rational<N>& r)
+template<integer_type N> std::string to_string(const static_rational<N>&)
{
- return to_string(r.numerator());
+ return to_string(N);
}
// get string representation of @c static_rational
-template<integer_type N, integer_type D> std::string to_string(const static_rational<N,D>& r)
+template<integer_type N, integer_type D> std::string to_string(const static_rational<N,D>&)
{
- return '(' + to_string(r.numerator()) + '/' + to_string(r.denominator()) + ')';
+ return '(' + to_string(N) + '/' + to_string(D) + ')';
}
/// Write @c static_rational to @c std::basic_ostream.
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