Skip to content

Commit e0781a5

Browse files
committed
[FIX] prevent breakage with seqan 2.4.0
1 parent 515f85c commit e0781a5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/holders.hpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,16 @@ class LocalDataHolder
385385
ArrayGaps>;
386386
using TAlignRow1 = Gaps<typename Infix<typename Value<typename TGlobalHolder::TTransSubjSeqs>::Type>::Type,
387387
ArrayGaps>;
388-
using TDPContext = DPContext<typename Value<typename TGlobalHolder::TScoreScheme>::Type, TScoreExtension>;
388+
#if (SEQAN_VERSION_MINOR < 4)
389+
using TDPContext = DPContext<typename Value<typename TGlobalHolder::TScoreScheme>::Type, TScoreExtension>;
390+
#else
391+
using TCellValue = int16_t;
392+
using TDPCell = DPCell_<TCellValue, TScoreExtension>;
393+
using TTraceValue = typename TraceBitMap_<TCellValue>::Type;
394+
using TScoreHost = String<TDPCell, Alloc<OverAligned> >;
395+
using TTraceHost = String<TTraceValue, Alloc<OverAligned> >;
396+
using TDPContext = DPContext<TDPCell, TTraceValue, TScoreHost, TTraceHost>;
397+
#endif
389398
using TAliExtContext = AliExtContext_<TAlignRow0, TAlignRow1, TDPContext>;
390399

391400
TAliExtContext alignContext;

0 commit comments

Comments
 (0)