[libcxx-commits] [PATCH] D80456: [libc++] [LWG3201] lerp should be marked noexcept.

Marek Kurdej via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 22 13:25:07 PDT 2020


curdeius created this revision.
curdeius added a reviewer: ldionne.
Herald added subscribers: libcxx-commits, dexonsmith.
Herald added a project: libc++.
Herald added a reviewer: libc++.
curdeius added a comment.

I have a small doubt. Should `<cmath>` include `lerp` in its synopsis? It's currently missing. I can add it in this patch if needed.


Update status page and test synopsis.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80456

Files:
  libcxx/test/std/numerics/c.math/c.math.lerp/c.math.lerp.pass.cpp
  libcxx/www/cxx2a_status.html


Index: libcxx/www/cxx2a_status.html
===================================================================
--- libcxx/www/cxx2a_status.html
+++ libcxx/www/cxx2a_status.html
@@ -477,7 +477,7 @@
 	<tr><td><a href="https://wg21.link/LWG3175">3175</a></td><td>The <tt>CommonReference</tt> requirement of concept <tt>SwappableWith</tt> is not satisfied in the example</td><td>Prague</td><td></td></tr>
 	<tr><td><a href="https://wg21.link/LWG3194">3194</a></td><td><tt>ConvertibleTo</tt> prose does not match code</td><td>Prague</td><td></td></tr>
 	<tr><td><a href="https://wg21.link/LWG3200">3200</a></td><td><tt>midpoint</tt> should not constrain <tt>T</tt> is complete</td><td>Prague</td><td></td></tr>
-	<tr><td><a href="https://wg21.link/LWG3201">3201</a></td><td><tt>lerp</tt> should be marked as <tt>noexcept</tt></td><td>Prague</td><td></td></tr>
+	<tr><td><a href="https://wg21.link/LWG3201">3201</a></td><td><tt>lerp</tt> should be marked as <tt>noexcept</tt></td><td>Prague</td><td>Complete</td></tr>
 	<tr><td><a href="https://wg21.link/LWG3226">3226</a></td><td><tt>zoned_time</tt> constructor from <tt>string_view</tt> should accept <tt>zoned_time<Duration2, TimeZonePtr2></tt></td><td>Prague</td><td></td></tr>
 	<tr><td><a href="https://wg21.link/LWG3233">3233</a></td><td>Broken requirements for <tt>shared_ptr</tt> converting constructors</td><td>Prague</td><td></td></tr>
 	<tr><td><a href="https://wg21.link/LWG3237">3237</a></td><td>LWG 3038 and 3190 have inconsistent PRs</td><td>Prague</td><td></td></tr>
Index: libcxx/test/std/numerics/c.math/c.math.lerp/c.math.lerp.pass.cpp
===================================================================
--- libcxx/test/std/numerics/c.math/c.math.lerp/c.math.lerp.pass.cpp
+++ libcxx/test/std/numerics/c.math/c.math.lerp/c.math.lerp.pass.cpp
@@ -8,10 +8,9 @@
 // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
 // <cmath>
 
-// constexpr float lerp(float a, float b, float t);
-// constexpr double lerp(double a, double b, double t);
-// constexpr long double lerp(long double a, long double b, long double t);
-
+// constexpr float lerp(float a, float b, float t) noexcept;
+// constexpr double lerp(double a, double b, double t) noexcept;
+// constexpr long double lerp(long double a, long double b, long double t) noexcept;
 
 #include <cmath>
 #include <limits>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80456.265794.patch
Type: text/x-patch
Size: 2329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200522/54d0c427/attachment.bin>


More information about the libcxx-commits mailing list