Opened 10 years ago

Closed 10 years ago

#697 closed defect (fixed)

attribute not updated in getline(istream&, GFF&)

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.8.1
Component: omic Version: 0.8
Keywords: Cc:

Description

When I run code like:

GFF2 gff1;
Gff2 gff2;
getline(std::cin, gff1);
cout << gff1.attribute("gene_id") << "\n";
getline(stc::cin, gff2);
cout << gff2.attribute("gene_id") << "\n";

outputs

LOC100288778
SAMD11

while the similar code

GFF2 gff1;
Gff2 gff2;
getline(std::cin, gff1);
cout << gff1.attribute("gene_id") << "\n";
getline(stc::cin, gff1);
cout << gff1.attribute("gene_id") << "\n";

outputs

LOC100288778
LOC100288778

Change History (3)

comment:1 Changed 10 years ago by Peter

Status: newassigned

comment:2 Changed 10 years ago by Peter

(In [2682]) extend test. refs #697

comment:3 Changed 10 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [2683]) fixes #697

Note: See TracTickets for help on using tickets.