X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=ReadReader.h;h=141585aa5cfe78ff3cd1aca0899f227f092928af;hp=9cd88e95a93bfc4570d81d0af76045efb097efb6;hb=da57529b92adbb7ae74a89861cb39fb35ac7c62d;hpb=9eef8b58056b7cdaad1b4bdb2b2904d9fc0ff430 diff --git a/ReadReader.h b/ReadReader.h index 9cd88e9..141585a 100644 --- a/ReadReader.h +++ b/ReadReader.h @@ -7,6 +7,7 @@ #include #include #include +#include #include "utils.h" #include "SingleRead.h" @@ -94,7 +95,7 @@ bool ReadReader::locate(READ_INT_TYPE rid) { if (crid < rid) return false; - std::streampos tmp[s]; + std::vector tmp(s); for (int i = 0; i < s; i++) { tmp[i] = arr[i]->tellg(); } if (!read.read(s, (std::istream**)arr, 0)) return false;