Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation notice to complex functions #917

Merged
merged 1 commit into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/boost/math/complex/acos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace std{ using ::sqrt; using ::fabs; using ::acos; using ::asin; using ::a
namespace boost{ namespace math{

template<class T>
std::complex<T> acos(const std::complex<T>& z)
[[deprecated("Replaced by C++11")]] std::complex<T> acos(const std::complex<T>& z)
{
//
// This implementation is a transcription of the pseudo-code in:
Expand Down
2 changes: 1 addition & 1 deletion include/boost/math/complex/acosh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace boost{ namespace math{

template<class T>
inline std::complex<T> acosh(const std::complex<T>& z)
[[deprecated("Replaced by C++11")]] inline std::complex<T> acosh(const std::complex<T>& z)
{
//
// We use the relation acosh(z) = +-i acos(z)
Expand Down
2 changes: 1 addition & 1 deletion include/boost/math/complex/asin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace std{ using ::sqrt; using ::fabs; using ::acos; using ::asin; using ::a
namespace boost{ namespace math{

template<class T>
inline std::complex<T> asin(const std::complex<T>& z)
[[deprecated("Replaced by C++11")]] inline std::complex<T> asin(const std::complex<T>& z)
{
//
// This implementation is a transcription of the pseudo-code in:
Expand Down
2 changes: 1 addition & 1 deletion include/boost/math/complex/asinh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace boost{ namespace math{

template<class T>
inline std::complex<T> asinh(const std::complex<T>& x)
[[deprecated("Replaced by C++11")]] inline std::complex<T> asinh(const std::complex<T>& x)
{
//
// We use asinh(z) = i asin(-i z);
Expand Down
2 changes: 1 addition & 1 deletion include/boost/math/complex/atan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace boost{ namespace math{

template<class T>
std::complex<T> atan(const std::complex<T>& x)
[[deprecated("Replaced by C++11")]] std::complex<T> atan(const std::complex<T>& x)
{
//
// We're using the C99 definition here; atan(z) = -i atanh(iz):
Expand Down
2 changes: 1 addition & 1 deletion include/boost/math/complex/atanh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace std{ using ::sqrt; using ::fabs; using ::acos; using ::asin; using ::a
namespace boost{ namespace math{

template<class T>
std::complex<T> atanh(const std::complex<T>& z)
[[deprecated("Replaced by C++11")]] std::complex<T> atanh(const std::complex<T>& z)
{
//
// References:
Expand Down