How to implement a real generic infinity in c++?
Opened this issue · 1 comments
Mooophy commented
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 commented
seems that this is what you want:
INFINITY = std::numeric_limits::max()
Thanks for your work in implementing the CLRS book.