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

How to implement a real generic infinity in c++? #1

Open
Mooophy opened this issue May 20, 2014 · 1 comment
Open

How to implement a real generic infinity in c++? #1

Mooophy opened this issue May 20, 2014 · 1 comment

Comments

@Mooophy
Copy link
Owner

Mooophy commented May 20, 2014

Found that infinity is often needed to implement algorithms from CLRS. Is there any way to implement a real generic infinity type that can be stored in a container?

@Kelvinson
Copy link

seems that this is what you want:
INFINITY = std::numeric_limits::max()
Thanks for your work in implementing the CLRS book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants