From: Boris Nagaev Date: Wed, 6 Jul 2016 16:46:41 +0000 (+0300) Subject: fix add_to_engine_blob for iterator=pointer X-Git-Tag: v4.3.0^2~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d87533ef0ded3c4c80e7bc61cc78c29dcd943ce;p=thirdparty%2Fvectorscan.git fix add_to_engine_blob for iterator=pointer --- diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index 758dd442..d37e95dc 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -460,7 +460,7 @@ u32 add_to_engine_blob(build_context &bc, const T &a, const size_t len) { template static u32 add_to_engine_blob(build_context &bc, Iter b, const Iter &e) { - using value_type = typename Iter::value_type; + using value_type = typename std::iterator_traits::value_type; static_assert(is_pod::value, "should be pod"); if (b == e) {