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

[Seqan-dev] bugfix: missing metafunction in misc_dequeue.h

<-- thread -->
<-- date -->
  • From: Fabian Buske <f.buske@uq.edu.au>
  • To: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Date: Wed, 13 Jul 2011 21:47:18 +1000
  • Reply-to: SeqAn Development <seqan-dev@lists.fu-berlin.de>
  • Subject: [Seqan-dev] bugfix: missing metafunction in misc_dequeue.h

Hi,

it seems that seqan/misc/misc_dequeue.h does currently not have the
functionality to report the type of its values (missing metafunction). I
didn't check whether this may also explain some of the bugs in the
bug-tracker related to the dequeue template.
Anyway, attached is a fix for this one.

Cheers,
Fabian

-- 
Fabian A. Buske
Institute for Molecular Bioscience
The University of Queensland Brisbane, Qld. 4072 Australia
Phone: (61)-(7)-334-62608 	

Index: misc_dequeue.h
===================================================================
--- misc_dequeue.h	(revision 10040)
+++ misc_dequeue.h	(working copy)
@@ -108,6 +108,11 @@
 	typedef Iter<Dequeue<TValue, TSpec> const, PositionIterator> Type;
 };
 
+template <typename TValue, typename TSpec>
+struct Value<Dequeue<TValue, TSpec> >
+{
+	typedef TValue Type;
+};
 
 //////////////////////////////////////////////////////////////////////////////
 
<-- thread -->
<-- date -->
  • seqan-dev - July 2011 - 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