From 80ff4aa6121c237d83d27171d833a64d3a8d4a81 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Wed, 11 Jan 2023 10:54:33 -0800 Subject: [PATCH] Add deprecation notice to complex functions --- include/boost/math/complex/acos.hpp | 2 +- include/boost/math/complex/acosh.hpp | 2 +- include/boost/math/complex/asin.hpp | 2 +- include/boost/math/complex/asinh.hpp | 2 +- include/boost/math/complex/atan.hpp | 2 +- include/boost/math/complex/atanh.hpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/boost/math/complex/acos.hpp b/include/boost/math/complex/acos.hpp index 9da98ca8fb..91df777414 100644 --- a/include/boost/math/complex/acos.hpp +++ b/include/boost/math/complex/acos.hpp @@ -20,7 +20,7 @@ namespace std{ using ::sqrt; using ::fabs; using ::acos; using ::asin; using ::a namespace boost{ namespace math{ template -std::complex acos(const std::complex& z) +[[deprecated("Replaced by C++11")]] std::complex acos(const std::complex& z) { // // This implementation is a transcription of the pseudo-code in: diff --git a/include/boost/math/complex/acosh.hpp b/include/boost/math/complex/acosh.hpp index 4f987cbee8..c5b52826e5 100644 --- a/include/boost/math/complex/acosh.hpp +++ b/include/boost/math/complex/acosh.hpp @@ -16,7 +16,7 @@ namespace boost{ namespace math{ template -inline std::complex acosh(const std::complex& z) +[[deprecated("Replaced by C++11")]] inline std::complex acosh(const std::complex& z) { // // We use the relation acosh(z) = +-i acos(z) diff --git a/include/boost/math/complex/asin.hpp b/include/boost/math/complex/asin.hpp index 0d37ee3d75..d1fbc2f164 100644 --- a/include/boost/math/complex/asin.hpp +++ b/include/boost/math/complex/asin.hpp @@ -20,7 +20,7 @@ namespace std{ using ::sqrt; using ::fabs; using ::acos; using ::asin; using ::a namespace boost{ namespace math{ template -inline std::complex asin(const std::complex& z) +[[deprecated("Replaced by C++11")]] inline std::complex asin(const std::complex& z) { // // This implementation is a transcription of the pseudo-code in: diff --git a/include/boost/math/complex/asinh.hpp b/include/boost/math/complex/asinh.hpp index 6761cfb485..1c9a42eb07 100644 --- a/include/boost/math/complex/asinh.hpp +++ b/include/boost/math/complex/asinh.hpp @@ -16,7 +16,7 @@ namespace boost{ namespace math{ template -inline std::complex asinh(const std::complex& x) +[[deprecated("Replaced by C++11")]] inline std::complex asinh(const std::complex& x) { // // We use asinh(z) = i asin(-i z); diff --git a/include/boost/math/complex/atan.hpp b/include/boost/math/complex/atan.hpp index a2104162cb..a11ea41ee5 100644 --- a/include/boost/math/complex/atan.hpp +++ b/include/boost/math/complex/atan.hpp @@ -16,7 +16,7 @@ namespace boost{ namespace math{ template -std::complex atan(const std::complex& x) +[[deprecated("Replaced by C++11")]] std::complex atan(const std::complex& x) { // // We're using the C99 definition here; atan(z) = -i atanh(iz): diff --git a/include/boost/math/complex/atanh.hpp b/include/boost/math/complex/atanh.hpp index c545590995..5b7dc90108 100644 --- a/include/boost/math/complex/atanh.hpp +++ b/include/boost/math/complex/atanh.hpp @@ -21,7 +21,7 @@ namespace std{ using ::sqrt; using ::fabs; using ::acos; using ::asin; using ::a namespace boost{ namespace math{ template -std::complex atanh(const std::complex& z) +[[deprecated("Replaced by C++11")]] std::complex atanh(const std::complex& z) { // // References: