From 7e88e9ee8ebfb04ee4ef4674035f574f2d28db68 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sat, 13 Oct 2018 00:17:10 +0100 Subject: [PATCH] Range pointers should be const. --- include/duckhandy/implem/int_conv.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/duckhandy/implem/int_conv.hpp b/include/duckhandy/implem/int_conv.hpp index ec707d1..9203a91 100644 --- a/include/duckhandy/implem/int_conv.hpp +++ b/include/duckhandy/implem/int_conv.hpp @@ -169,7 +169,7 @@ namespace dhandy { template struct AryConversion { template - 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 > - inline R ary_to_int (C* beg, C* end) { + inline R ary_to_int (const C* beg, const C* end) { return implem::AryConversion::from_ary(beg, end); }