diff --git a/include/duckhandy/lexical_cast.hpp b/include/duckhandy/lexical_cast.hpp index 33ee80e..251e52c 100644 --- a/include/duckhandy/lexical_cast.hpp +++ b/include/duckhandy/lexical_cast.hpp @@ -32,8 +32,8 @@ #include #include #include -#include #include +#include namespace dhandy { namespace customize { @@ -96,7 +96,8 @@ namespace dhandy { inline T string_to_int (const F& parFrom) { T retval(0); T mul(1); - for (auto chara : boost::adaptors::reverse(parFrom)) { + for (auto it = std::rbegin(parFrom), itEND = std::rend(parFrom); it != itEND; ++it) { + const auto chara = *it; retval += dhandy::customize::char_to_int::make(chara) * mul; mul *= Tag::base; }