Range pointers should be const.

This commit is contained in:
King_DuckZ 2018-10-13 00:17:10 +01:00
parent af7538c5fa
commit 7e88e9ee8e

View file

@ -169,7 +169,7 @@ namespace dhandy {
template <typename I, unsigned int Base, typename Tr>
struct AryConversion {
template <typename C>
static I from_ary (C* beg, C* end) {
static I from_ary (const C* beg, const C* end) {
I retval = 0;
I factor = 1;
std::size_t i = end - beg;
@ -294,7 +294,7 @@ namespace dhandy {
}
template <typename R, typename C, unsigned int Base=10, typename Tr=ASCIITranslator<C>>
inline R ary_to_int (C* beg, C* end) {
inline R ary_to_int (const C* beg, const C* end) {
return implem::AryConversion<R, Base, Tr>::from_ary(beg, end);
}