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:
Davis King 2011-04-29 18:08:18 +00:00
parent 09729e950f
commit 22dbf3d0d5
2 changed files with 6 additions and 4 deletions

View File

@ -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);

View File

@ -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