Skip to content

DM-12006: Improve testing of copyPolymorphic#47

Open
r-owen wants to merge 3 commits into
mainfrom
tickets/DM-12006
Open

DM-12006: Improve testing of copyPolymorphic#47
r-owen wants to merge 3 commits into
mainfrom
tickets/DM-12006

Conversation

@r-owen

@r-owen r-owen commented Jul 6, 2018

Copy link
Copy Markdown
Contributor

No description provided.

r-owen added 3 commits July 6, 2018 12:57
remove copyPolymorphic so subclasses must override it.
Update functional.cc accordingly.
since `virtual` is implied.

@kfindeisen kfindeisen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good; one minor (and out of scope) comment about the overall architecture.

Comment thread src/functional.cc
auto unitNormMap = UnitNormMap(center);
return std::make_shared<Mapping>(
return std::make_shared<SeriesMap>(
unitNormMap.then(UnitMap(naxes).under(mapping1d)).then(*unitNormMap.getInverse()));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wonder if we should standardize whether mappings are returned by value (then) or smart pointer (makeRadialMapping). This code seems to involve way more implicit moves than should be necessary.

@r-owen r-owen Jul 9, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You are right; then should probably be changed to return a shared pointer. However, I suggest that be a different ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants