replace boost integer range
replace C limits with STL-defined and typedef'ed limits