Boost logo

Boost Users :

Subject: [Boost-users] [mpl][type_traits] Getting the minimum and maximum value for a buit-in type at compile time
From: Edward Diener (eldiener_at_[hidden])
Date: 2009-12-18 17:53:23


I would have thought that there must be a way to get the minimum and
maximum value for a C++ built-in type but my search through mpl and
type_traits yields nothing and numeric_limits requires a run-time
function call. Surely this information is available to the compiler so
it must be available to the TMP programmer somewhere. Where is it ?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net