return mom * factor_;
}
-String
+std::string
Duration::to_string () const
{
- String s;
+ std::string s;
if (durlog_ < 0)
- s = "log = " + ::to_string (durlog_);
+ s = "log = " + std::to_string (durlog_);
else
- s = ::to_string (1 << durlog_);
+ s = std::to_string (1 << durlog_);
- s += ::to_string ('.', dots_);
+ s += std::to_string ('.', dots_);
if (factor_ != Moment (Rational (1, 1)))
s += "*" + factor_.to_string ();
return s;