|
Boost-Commit : |
From: hinnant_at_[hidden]
Date: 2007-12-06 15:07:17
Author: hinnant
Date: 2007-12-06 15:07:16 EST (Thu, 06 Dec 2007)
New Revision: 41803
URL: http://svn.boost.org/trac/boost/changeset/41803
Log:
Minor typeo fixes and restriction on the E duration type
Text files modified:
sandbox/committee/branches/date_time/thread_library.html | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
Modified: sandbox/committee/branches/date_time/thread_library.html
==============================================================================
--- sandbox/committee/branches/date_time/thread_library.html (original)
+++ sandbox/committee/branches/date_time/thread_library.html 2007-12-06 15:07:16 EST (Thu, 06 Dec 2007)
@@ -3448,9 +3448,14 @@
<p>
Throughout this clause, the names of template parameters are used to express
-type requirements. Parameter names LhsDuration and RhsDuration express the
+type requirements. Parameter names <code>Duration</code>, <code>LhsDuration</code>
+and <code>RhsDuration</code> express the
Duration ([<a name="time.duration">[time.duration.requirements]</a>])
-requirements.</p>
+requirements.
+For all non-member functions in this clause which are templated on Duration types,
+the implementation shall constrain these function templates such that they will
+only instantiate for Duration types.
+</p>
<p>
<strong>Header <date_time> Synopsis</strong>
@@ -3523,7 +3528,10 @@
expressions specified it the following table, where <code>D</code> and <code>E</code>
are duration types, <code>d</code> denotes a <code>const</code> value of type
<code>D</code>, <code>e</code> denotes a <code>const</code> value of type <code>
-E</code>, <code>c</code> denotes an <code>int</code> value.</p>
+E</code>, <code>c</code> denotes a <code>long</code> value.
+The resolution of <code>E</code> shall not be finer than the resolution of <code>D</code>
+(diagnostic required).
+</p>
<table style="border-collapse: collapse;" border="1" bordercolor="#111111" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td width="25%"><b><i>expression</i></b></td>
@@ -3539,13 +3547,13 @@
<td valign="top" width="25%"><code>D::ticks_per_second;</code></td>
<td valign="top" width="11%"><code>D::tick_type</code></td>
<td valign="top" width="39%">The number of ticks per
- second, or 0 for types for which <code>is_subsecond() == false</code>. </td>
+ second, or 0 for types for which the number of ticks per second is less than 1. </td>
</tr>
<tr>
<td valign="top" width="25%"><code>D::seconds_per_tick;</code></td>
<td valign="top" width="11%"><code>D::tick_type</code></td>
<td valign="top" width="39%">The number of seconds per
- tick, or 0 for types for which <code>is_subsecond() == true</code>. </td>
+ tick, or 0 for types for which the number of seconds per tick is less than 1. </td>
</tr>
<tr>
<td valign="top" width="25%"><code>D::is_subsecond;</code></td>
@@ -3629,7 +3637,7 @@
// <i>construct/copy/destroy functions</i>
nanoseconds(long long ns=0);
nanoseconds(const nanoseconds&);
- nanoseconds(nanosecons&&);
+ nanoseconds(nanoseconds&&);
nanoseconds& operator=(const nanoseconds&);
nanoseconds& operator=(nanoseconds&&);
~nanoseconds();
@@ -3689,7 +3697,7 @@
// <i>construct/copy/destroy functions</i>
microseconds(long long us=0);
microseconds(const microseconds&);
- microseconds(nanosecons&&);
+ microseconds(microseconds&&);
microseconds& operator=(const microseconds&);
microseconds& operator=(microseconds&&);
~microseconds();
@@ -3765,7 +3773,7 @@
// <i>construct/copy/destroy functions</i>
milliseconds(long long ms=0);
milliseconds(const milliseconds&);
- milliseconds(nanosecons&&);
+ milliseconds(milliseconds&&);
milliseconds& operator=(const milliseconds&);
milliseconds& operator=(milliseconds&&);
~milliseconds();
@@ -3855,7 +3863,7 @@
// <i>construct/copy/destroy functions</i>
seconds(long long s=0);
seconds(const seconds&);
- seconds(nanosecons&&);
+ seconds(seconds&&);
seconds& operator=(const seconds&);
seconds& operator=(seconds&&);
~seconds();
@@ -3958,7 +3966,7 @@
// <i>construct/copy/destroy functions</i>
minutes(long long m=0);
minutes(const minutes&);
- minutes(nanosecons&&);
+ minutes(minutes&&);
minutes& operator=(const minutes&);
minutes& operator=(minutes&&);
~minutes();
@@ -4074,7 +4082,7 @@
// <i>construct/copy/destroy functions</i>
hours(long long h=0);
hours(const hours&);
- hours(nanosecons&&);
+ hours(hours&&);
hours& operator=(const hours&);
hours& operator=(hours&&);
~hours();
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