astro-informatics / purify

Next-generation radio interferometric imaging.
https://astro-informatics.github.io/purify
GNU General Public License v2.0
17 stars 13 forks source link

Compile error with old gcc, doesn't recongise enum type in switch statement #166

Closed Luke-Pratley closed 6 years ago

Luke-Pratley commented 6 years ago

https://github.com/astro-informatics/purify/blob/0b0af6af94609564b6655226cbf049aa7548cc0e/cpp/purify/uvfits.cc#L119-L151

Luke-Pratley commented 6 years ago

I have found that this can be fixed by adding extra scope to the enums in the switch case, so stokes::I goes to purify::stokes::I. Though, this was found on an old branch. Need to test it on development.