[Seqan-dev] check for errors when reading GTF annotations


Hi all,

How can I check for errors when reading a GTF file?

I tried checking return value of read() function, but it doesn't compile (see example attached)

Env: Ubuntu Linux 12.04 64bit, GCC 4.6.3
Seqan SVN revision: 13076

Tnx in advance,
   Konstantin
#include <cassert>
#include <iostream>

#include <seqan/store.h>
#include <seqan/file.h>


using namespace seqan;

int main(int argc, char const ** argv)
{
    FragmentStore<> store;
     std::ifstream file("test.gtf", std::ios_base::in | std::ios_base::binary);

    // Read annotations from the GTF file
    bool res = read(file, store, Gtf());
    
    assert(res == true);


    return 0;
}