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

Explicit Instantiation of some Z2i/Z3i classes #1117

Merged
merged 10 commits into from
Jan 22, 2016

Conversation

dcoeurjo
Copy link
Member

  • cleanup of some cpp included in libDGtal
  • explicit instantiation of some Z2i:: and Z3i:: classes
  • this PR (slightly) speeds up unit test build

@dcoeurjo
Copy link
Member Author

Can someone have a quick look at this PR ?

@@ -311,7 +311,7 @@ DGtal::ExactPredicateLpPowerSeparableMetric<T,2,P>::binarySearchHidden(const Abs
const Abscissa &/*upper*/) const
{
ASSERT(false && "Not Necessary for l_2");

return 0;
Copy link
Member

Choose a reason for hiding this comment

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

Should we not better thrown an exception or simply not define this function (only the header) ?

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're right

Copy link
Member

Choose a reason for hiding this comment

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

Maybe not the right place to talk about this, but there is a lake of DGtal exceptions, especially with a string member to describe why an exception was raised (e.g. in DGtal::IOException).

Copy link
Member Author

Choose a reason for hiding this comment

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

Le 22 janv. 2016 à 15:02, rolanddenis [email protected] a écrit :

In src/DGtal/geometry/volumes/distance/ExactPredicateLpPowerSeparableMetric.ih #1117 (comment):

@@ -311,7 +311,7 @@ DGtal::ExactPredicateLpPowerSeparableMetric<T,2,P>::binarySearchHidden(const Abs
const Abscissa &/upper/) const
{

ASSERT(false && "Not Necessary for l_2");

  • return 0;
    Maybe not the right place to talk about this, but there is a lake of DGtal exceptions, especially with a string member to describe why an exception was raised (e.g. in DGtal::IOException).

I definitely agree… Exception management in DGtal is very limited.

@rolanddenis
Copy link
Member

Nice Idea !

@dcoeurjo
Copy link
Member Author

Merging;)

dcoeurjo added a commit that referenced this pull request Jan 22, 2016
Explicit Instantiation of some Z2i/Z3i classes
@dcoeurjo dcoeurjo merged commit c5dc29f into DGtal-team:master Jan 22, 2016
@dcoeurjo dcoeurjo deleted the helperLib branch October 7, 2021 11:58
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