Ratio: Fix Ticket #5724 and type with u32string

[SVN r75240]
This commit is contained in:
Vicente J. Botet Escriba 2011-11-01 20:55:28 +00:00
parent 4b58e5a915
commit a10c5d3377
2 changed files with 7 additions and 7 deletions

View File

@ -242,8 +242,8 @@ namespace ratio_detail
>
>::type type;
};
template <class R>
struct ratio_add<R, ratio<0> >
template <class R, boost::intmax_t D>
struct ratio_add<R, ratio<0,D> >
{
typedef R type;
};
@ -274,8 +274,8 @@ namespace ratio_detail
>::type type;
};
template <class R>
struct ratio_subtract<R, ratio<0> >
template <class R, boost::intmax_t D>
struct ratio_subtract<R, ratio<0,D> >
{
typedef R type;
};

View File

@ -418,9 +418,9 @@ template <>
struct ratio_string<milli, char16_t>
{
static std::u16string short_name() {return std::u16string(1, u'm');}
static std::u32string long_name() {return std::u16string(u"milli");}
static std::u32string symbol() {return short_name();}
static std::u32string prefix() {return long_name();}
static std::u16string long_name() {return std::u16string(u"milli");}
static std::u16string symbol() {return short_name();}
static std::u16string prefix() {return long_name();}
};
template <>