mirror of https://github.com/davisking/dlib.git
A minor change to avoid getting a compiler error about functions
being ambiguous when the rectangle is used with floating point vectors. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404238
This commit is contained in:
parent
09729e950f
commit
22dbf3d0d5
|
@ -70,9 +70,10 @@ namespace dlib
|
|||
{
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
rectangle (
|
||||
const point& p1,
|
||||
const point& p2
|
||||
const vector<T,2>& p1,
|
||||
const vector<T,2>& p2
|
||||
)
|
||||
{
|
||||
*this = rectangle(p1) + rectangle(p2);
|
||||
|
|
|
@ -90,9 +90,10 @@ namespace dlib
|
|||
- #bottom() == p.y()
|
||||
!*/
|
||||
|
||||
template <typename T>
|
||||
rectangle (
|
||||
const point& p1,
|
||||
const point& p2
|
||||
const vector<T,2>& p1,
|
||||
const vector<T,2>& p2
|
||||
);
|
||||
/*!
|
||||
ensures
|
||||
|
|
Loading…
Reference in New Issue