]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
fix add_to_engine_blob for iterator=pointer
authorBoris Nagaev <bnagaev@gmail.com>
Wed, 6 Jul 2016 16:46:41 +0000 (19:46 +0300)
committerBoris Nagaev <bnagaev@gmail.com>
Wed, 6 Jul 2016 16:46:41 +0000 (19:46 +0300)
src/rose/rose_build_bytecode.cpp

index 758dd442afeb3e923c7e74c28bbfeb6de2d67a54..d37e95dc8e5aeae3be25e6bcbead1bd4fc11a480 100644 (file)
@@ -460,7 +460,7 @@ u32 add_to_engine_blob(build_context &bc, const T &a, const size_t len) {
 template<typename Iter>
 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<Iter>::value_type;
     static_assert(is_pod<value_type>::value, "should be pod");
 
     if (b == e) {