]> OCCT Git - occt.git/commitdiff
Foundation Classes - Remove [[nodiscard]] attribute from Deprecated Method (#865)
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sun, 30 Nov 2025 09:08:58 +0000 (09:08 +0000)
committerGitHub <noreply@github.com>
Sun, 30 Nov 2025 09:08:58 +0000 (09:08 +0000)
src/FoundationClasses/TKernel/Standard/Standard_Real.hxx

index e16d62b2c84d594bbb022d6418e0ea83b52b202e..7205b828539f065f2c5da42d1c4b261f538ac1bd 100644 (file)
@@ -41,7 +41,7 @@ inline double ACos(const double theValue)
 //! The max error is about 1 degree near Value=0.
 //! NOTE: Avoid using this function in new code, it presumably slower then std::acos.
 Standard_DEPRECATED("Deprecated, use std::acos instead")
-Standard_EXPORT [[nodiscard]] double ACosApprox(const double theValue);
+Standard_EXPORT double ACosApprox(const double theValue);
 
 //! Returns the value of the arc sine of a @p theValue.
 Standard_DEPRECATED("This function duplicates std::asin and will be removed in future releases. "