|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74941 - trunk/boost/chrono/io
From: vicente.botet_at_[hidden]
Date: 2011-10-13 18:32:30
Author: viboes
Date: 2011-10-13 18:32:29 EDT (Thu, 13 Oct 2011)
New Revision: 74941
URL: http://svn.boost.org/trac/boost/changeset/74941
Log:
Chrono: Fix bug when using translation (missing returnsvn diff! and typo)
Text files modified:
trunk/boost/chrono/io/duration_unit_string.hpp | 2 +-
trunk/boost/chrono/io/translate.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/chrono/io/duration_unit_string.hpp
==============================================================================
--- trunk/boost/chrono/io/duration_unit_string.hpp (original)
+++ trunk/boost/chrono/io/duration_unit_string.hpp 2011-10-13 18:32:29 EDT (Thu, 13 Oct 2011)
@@ -127,7 +127,7 @@
template <class CharT, class Rep, class Period>
std::basic_string<CharT> duration_unit(bool is_prefix, duration<Rep,Period> const& d) {
if (is_prefix) {
- duration_prefix_translate(
+ return duration_prefix_translate(
duration_unit_strings<Period, CharT>::singular(),
duration_unit_strings<Period, CharT>::plural(),
d.count()
Modified: trunk/boost/chrono/io/translate.hpp
==============================================================================
--- trunk/boost/chrono/io/translate.hpp (original)
+++ trunk/boost/chrono/io/translate.hpp 2011-10-13 18:32:29 EDT (Thu, 13 Oct 2011)
@@ -26,7 +26,7 @@
return plural;
}
- template <class CharT, class Rep>
+ template <class CharT>
std::basic_string<CharT> duration_symbol_translate(std::basic_string<CharT> const &symbol)
{
return symbol;
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