[libcxx-commits] [libcxx] [libc++][math] Mathematical Special Functions: Hermite Polynomial (PR #89982)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 25 10:01:57 PDT 2024


================
@@ -0,0 +1,45 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP_EXPERIMENTAL_MATH
+#define _LIBCPP_EXPERIMENTAL_MATH
+
+#include <experimental/__config>
+
+#if _LIBCPP_STD_VER >= 17
+
+#  include <experimental/__math/hermite.h>
+#  include <type_traits> // enable_if_t, is_integral_v
----------------
mordante wrote:

@Zingam you're always free to do reviews.

This comment is correct the include should be unconditional and please use the granularized headers. (Headers mandated by the standard should be in the top-level header. I would be extremely surprised when type_traits is mandated.)

https://github.com/llvm/llvm-project/pull/89982


More information about the libcxx-commits mailing list