[Seqan-dev] Infix of const String


Hi Team,

adopting from IndexIterators Tutorial, following problem came up:

When I want to save an Infix of an representative in an Index Iterator:

seqan::Infix<TBarcodeString>::Type referenceIfx = infix(representative(indexIt), parentRepLength(indexIt) + 1, endPos);

the error pops up, that I can't use a const String for this:

/opt/seqan/seqan-src/include/seqan/sequence/segment_infix.h:135:42: error: invalid conversion from ‘seqan::Pointer_<const seqan::String<seqan::SimpleType<unsigned char, seqan::Dna5_>, seqan::Alloc<> > >::Type {aka const seqan::String<seqan::SimpleType<unsigned char, seqan::Dna5_>, seqan::Alloc<> >*}’ to ‘seqan::Pointer_<seqan::String<seqan::SimpleType<unsigned char, seqan::Dna5_>, seqan::Alloc<> > >::Type {aka seqan::String<seqan::SimpleType<unsigned char, seqan::Dna5_>, seqan::Alloc<> >*}’ [-fpermissive]
         data_host(_toPointer(host(_other))),

Solutions?

Best,
Alexander