-
Notifications
You must be signed in to change notification settings - Fork 0
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
Minor edit #3
Minor edit #3
Conversation
Here you have my issues with Xcode.. weird stuff.. line 222, testVoronoiMap, the IDE wants me to add extra |
BTW, you never use Compared to the previous version, there is a slight overhead due to the |
/** | ||
* Disabling default constructor. | ||
*/ | ||
VoronoiMap() = delete; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, C++ doesn't implicitly declare the default constructor if any other constructor is defined. So deleting it is not mandatory even if it is clearer.
About the error with Xcode, I think it should accept the brace elision but since it is a common pitfall, I propose to add the extra bool testVoronoiMap( std::array<bool, 2> const& periodicity = { { false, false } } ) Yes, I designed I'm agree that the only overhead is on the periodicity tests since I specifically split the loops in generic and periodic parts. It should be negligible, isn't it ? |
Yeah it's negligible. |
BTW, it was not an error from Xcode, just a warning.. my bad |
Yes, I also think about it but since other DGtal classes don't work this way (actually only |
Can I merge ? |
Yep please. Try to merge the commits without closing my PR (and don't know if the PR will still be open with no diff...). |
;) damit, it automatically closes the PR |
😄 |
ok I 've just pushed a tiny edit and i have to create a new PR so that you can see it... |
Ok, next time, I will directly merge from you branch ... I will also push some documentation updates. |
👌 |
Hop