Mooophy/CLRS

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

Opened this issue · 1 comments

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?

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