Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review for meas_base DM-2307: transformations for shape measurements #15

Merged
merged 3 commits into from Apr 12, 2015

Conversation

TallJimbo
Copy link
Member

No description provided.

@@ -130,7 +130,8 @@ class ShapeResultKey : public afw::table::FunctorKey<ShapeResult> {
afw::table::Schema & schema,
std::string const & name,
std::string const & doc,
UncertaintyEnum uncertainty
UncertaintyEnum uncertainty,
afw::table::CoordinateType coordType=afw::table::CoordinateType::PIXEL
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You use this like an enum class here but like a regular enum elsewhere. Unless I've caught you in the midst of changing it, one of these is wrong.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In C++11, it's permitted to give scope to a regular enum. That is, afw::table::CoordinateType::PIXEL and afw::table::PIXEL are equivalent, and this does, in fact, work. I agree that this code is ugly & inconsistent, though.

It looks as though Swig is happy with enum class, so I think switching everything to that is a clear win.

@jdswinbank jdswinbank force-pushed the tickets/DM-2307 branch 2 times, most recently from eebdcd1 to 93c4a88 Compare April 11, 2015 16:00
@jdswinbank jdswinbank merged commit 61374ae into master Apr 12, 2015
@ktlim ktlim deleted the tickets/DM-2307 branch August 25, 2018 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants