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

Marek Kurdej via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 25 13:56:26 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd1dbda10cefe: [libc++] [LWG3201] Update status page: lerp should be marked noexcept. (authored by curdeius).

Changed prior to commit:
  https://reviews.llvm.org/D80456?vs=265794&id=266074#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80456/new/

https://reviews.llvm.org/D80456

Files:
  libcxx/include/cmath
  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>
Index: libcxx/include/cmath
===================================================================
--- libcxx/include/cmath
+++ libcxx/include/cmath
@@ -296,6 +296,10 @@
 float          truncf(float x);
 long double    truncl(long double x);
 
+constexpr float       lerp(float a, float b, float t) noexcept;                   // C++20
+constexpr double      lerp(double a, double b, double t) noexcept;                // C++20
+constexpr long double lerp(long double a, long double b, long double t) noexcept; // C++20
+
 }  // std
 
 */


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80456.266074.patch
Type: text/x-patch
Size: 2865 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200525/e446e271/attachment.bin>


More information about the libcxx-commits mailing list