Skip to content

Commit 2d4e47a

Browse files
committed
deque cannot be const
1 parent 7366c29 commit 2d4e47a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/kreeq.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class DBG : public Kmap<DBG, UserInputKreeq, uint64_t, DBGkmer, DBGkmer32> { //
229229

230230
bool DBGtoVariants(InSegment *inSegment);
231231

232-
std::pair<bool,std::deque<DBGpath>> searchVariants(std::pair<const uint64_t,DBGkmer32> source, std::array<uint16_t, 2> mapRange, const std::deque<const uint64_t> &targetsQueue, const phmap::parallel_flat_hash_map<uint64_t,bool> &targetsMap, ParallelMap32* localGraphCache);
232+
std::pair<bool,std::deque<DBGpath>> searchVariants(std::pair<const uint64_t,DBGkmer32> source, std::array<uint16_t, 2> mapRange, const std::deque<uint64_t> &targetsQueue, const phmap::parallel_flat_hash_map<uint64_t,bool> &targetsMap, ParallelMap32* localGraphCache);
233233

234234
bool variantsToGFA(InSegment *inSegment, Log &threadLog);
235235

src/variants.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bool DBG::DBGtoVariants(InSegment *inSegment) {
7272
while(explored < kcount) {
7373

7474
mapRange = {0,0};
75-
std::deque<const uint64_t> targetsQueue;
75+
std::deque<uint64_t> targetsQueue;
7676
phmap::parallel_flat_hash_map<uint64_t,bool> targetsMap;
7777

7878
while (mapRange[1] < mapCount) {
@@ -176,7 +176,7 @@ bool DBG::DBGtoVariants(InSegment *inSegment) {
176176
return true;
177177
}
178178

179-
std::pair<bool,std::deque<DBGpath>> DBG::searchVariants(std::pair<const uint64_t,DBGkmer32> source, std::array<uint16_t, 2> mapRange, const std::deque<const uint64_t> &targetsQueue, const phmap::parallel_flat_hash_map<uint64_t,bool> &targetsMap, ParallelMap32* localGraphCache) { // dijkstra variant search
179+
std::pair<bool,std::deque<DBGpath>> DBG::searchVariants(std::pair<const uint64_t,DBGkmer32> source, std::array<uint16_t, 2> mapRange, const std::deque<uint64_t> &targetsQueue, const phmap::parallel_flat_hash_map<uint64_t,bool> &targetsMap, ParallelMap32* localGraphCache) { // dijkstra variant search
180180

181181
bool explored = false; // true if we reached a node in the original graph
182182
std::vector<uint64_t> destinations;

0 commit comments

Comments
 (0)