Mentions légales du service

Skip to content
Snippets Groups Projects
Commit df6e09ff authored by Vincent Liard's avatar Vincent Liard
Browse files

remove `const` from ae_individual in ae_stat_record ctor

Taken from ae_stat_record.cpp:
ae_stat_record::ae_stat_record(..., ae_individual * indiv,...)

Nice. Except that the constness of indiv is abused. Later on:
ae_genetic_unit& gen_unit = **indiv->get_genetic_unit_list_std().begin();
...
_nb_bases_in_0_CDS = gen_unit.get_nb_bases_in_0_CDS()

Where get_nb_bases_in_0_CDS() is NOT const and cannot (yet) be, because
it calls compute_non_coding which alters ae_genetic_unit's state.

Hence, a bit sad, I feel allowed to remove the `const` qualifier.
parent a2624e7e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment