Correct the return type of to_file_time(const sys_time<Duration>& t)

* The mapping between sys_time and file_time can occur at precisions
  coarser than a second because the only anticipated difference
  between these clocks is the epoch, and not the inclusion of leap
  seconds.
This commit is contained in:
Howard Hinnant
2017-06-18 10:53:45 -04:00
parent e7dd17e572
commit 59d8931136

View File

@@ -37,7 +37,7 @@
Document number: D0355R3<br/>
<br/>
<a href="mailto:howard.hinnant@gmail.com">Howard E. Hinnant</a><br/>
2017-06-17<br/>
2017-06-18<br/>
</address>
<hr/>
<h1>Extending <code>&lt;chrono&gt;</code> to Calendars and Time Zones</h1>
@@ -2727,7 +2727,7 @@ used for <code>file_time_type</code> ([filesystems]). It's epoch is unspecified
<pre>
template &lt;class Duration&gt;
file_time&lt;common_type_t&lt;Duration, seconds&gt;&gt;
file_time&lt;Duration&gt;
to_file_time(const sys_time&lt;Duration&gt;&amp; t);
</pre>
<blockquote>