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

interval::hull occludes non-member hull() functions #34

Open
byron-hawkins opened this issue Oct 6, 2022 · 0 comments
Open

interval::hull occludes non-member hull() functions #34

byron-hawkins opened this issue Oct 6, 2022 · 0 comments

Comments

@byron-hawkins
Copy link

There are functions hull(a, b) and also a static member function interval::hull(T, T). I am using the interval class as a base class. Within my type that is derived from interval<T>, I find that it is complicated to invoke the non-member versions of the hull() function, because the compiler becomes obsessively glued to the static member function interval::hull(T, T). It effectively occludes the others. Conversely, the static member function serves no purpose, because it performs exactly the same operation as its non-static counterpart. It would be convenient to have this static member function removed.

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

No branches or pull requests

1 participant