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

Fix clang build with CppAD >= 2024 #88

Merged
merged 1 commit into from
Jun 16, 2024
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
24 changes: 1 addition & 23 deletions include/cppad/cg/base_double.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,7 @@ namespace CppAD {
/**
* Specialization of the numeric_limits for doubles
*/
template <>
class numeric_limits<cg::CG<double> > {
public:

static cg::CG<double> epsilon() {
return std::numeric_limits<double>::epsilon();
}

static cg::CG<double> min() {
return (std::numeric_limits<double>::min)();
}

static cg::CG<double> max() {
return (std::numeric_limits<double>::max)();
}

static cg::CG<double> quiet_NaN() {
return std::numeric_limits<double>::quiet_NaN();
}

static const int digits10
= std::numeric_limits<double>::digits10;
};
CPPAD_NUMERIC_LIMITS(double, cg::CG<double>)

/**
* Specialization of the machine epsilon for CG<double>
Expand Down
24 changes: 1 addition & 23 deletions include/cppad/cg/base_float.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,7 @@ namespace CppAD {
/**
* Specialization of the numeric_limits for floats
*/
template <>
class numeric_limits<cg::CG<float> > {
public:

static cg::CG<float> epsilon() {
return std::numeric_limits<float>::epsilon();
}

static cg::CG<float> min() {
return std::numeric_limits<float>::min();
}

static cg::CG<float> max() {
return std::numeric_limits<float>::max();
}

static cg::CG<float> quiet_NaN() {
return std::numeric_limits<float>::quiet_NaN();
}

static const int digits10
= std::numeric_limits<float>::digits10;
};
CPPAD_NUMERIC_LIMITS(float, cg::CG<float>)

/**
* Specialization of the machine epsilon for CG<float>
Expand Down