summaryrefslogtreecommitdiffstats
path: root/libcxx/include
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2015-11-30 05:39:30 +0000
committerMarshall Clow <mclow.lists@gmail.com>2015-11-30 05:39:30 +0000
commitb8427293df2b4cfa2cde30ef26db560d6b79e84e (patch)
tree99513a27088a6e05fcb0ace69bf8c090767992b6 /libcxx/include
parent12dff9e66aa0886a02eb511c0ee35332e15428ac (diff)
downloadbcm5719-llvm-b8427293df2b4cfa2cde30ef26db560d6b79e84e.tar.gz
bcm5719-llvm-b8427293df2b4cfa2cde30ef26db560d6b79e84e.zip
Last bit of P0006; mark it as complete
llvm-svn: 254290
Diffstat (limited to 'libcxx/include')
-rw-r--r--libcxx/include/chrono8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/include/chrono b/libcxx/include/chrono
index aac05870f55..68484e98243 100644
--- a/libcxx/include/chrono
+++ b/libcxx/include/chrono
@@ -26,6 +26,9 @@ duration_cast(const duration<Rep, Period>& fd);
template <class Rep> struct treat_as_floating_point : is_floating_point<Rep> {};
+template <class Rep> constexpr bool treat_as_floating_point_v
+ = treat_as_floating_point<Rep>::value; // C++17
+
template <class Rep>
struct duration_values
{
@@ -413,6 +416,11 @@ duration_cast(const duration<_Rep, _Period>& __fd)
template <class _Rep>
struct _LIBCPP_TYPE_VIS_ONLY treat_as_floating_point : is_floating_point<_Rep> {};
+#if _LIBCPP_STD_VER > 14 && !defined(_LIBCPP_HAS_NO_VARIABLE_TEMPLATES)
+template <class _Rep> _LIBCPP_CONSTEXPR bool treat_as_floating_point_v
+ = treat_as_floating_point<_Rep>::value;
+#endif
+
template <class _Rep>
struct _LIBCPP_TYPE_VIS_ONLY duration_values
{
OpenPOWER on IntegriCloud