FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

Re: [Seqan-dev] Infix of const String

<-- thread -->
<-- date -->
  • From: Alexander Vowinkel <vowinkel.alexander@gmail.com>
  • To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Date: Thu, 4 Jun 2015 16:50:21 -0500
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: Re: [Seqan-dev] Infix of const String

Indeed!

More to find there: https://github.com/seqan/seqan/issues/1009

2015-06-04 13:53 GMT-05:00 Rahn, René <rene.maerker@fu-berlin.de>:
Hi Alexander,

it seems to me that the error message complains about a const to non-const type cast. 
The function representative returns a pointer to a const String, while you are trying to assign this to an pointer to non-const String.
So I guess 

typename Infix<TBarcodeString const>::Type would solve the compiler error?
Can you please try this?

Cheers, 

René

On 03 Jun 2015, at 01:46, Alexander Vowinkel <vowinkel.alexander@gmail.com> wrote:

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 
_______________________________________________
seqan-dev mailing list
seqan-dev@lists.fu-berlin.de
https://lists.fu-berlin.de/listinfo/seqan-dev

---

René Rahn
Ph.D. Student
--------------------------------
Tel:  (+49) 30 838 75137
Mail: rene.rahn@fu-berlin.de
--------------------------------
Institute of Computer Science
Algorithmic Bioinformatics (ABI)
--------------------------------
Freie Universität Berlin
Takustraße 9
14195 Berlin
--------------------------------


_______________________________________________
seqan-dev mailing list
seqan-dev@lists.fu-berlin.de
https://lists.fu-berlin.de/listinfo/seqan-dev


<-- thread -->
<-- date -->
  • References:
    • [Seqan-dev] Infix of const String
      • From: Alexander Vowinkel <vowinkel.alexander@gmail.com>
    • Re: [Seqan-dev] Infix of const String
      • From: Rahn, René <rene.maerker@fu-berlin.de>
  • seqan-dev - June 2015 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the seqan-dev mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal