boostorg / boostorg/interval

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

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
31
Forks
48
PR merge metrics
No merged PRs in 30d

Description

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`, 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.