Range pointers should be const.
This commit is contained in:
parent
af7538c5fa
commit
7e88e9ee8e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue