Fixed compile error in gcc

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402738
This commit is contained in:
Davis King 2008-12-19 16:41:11 +00:00
parent 1f8cd9c371
commit 77e5542373
1 changed files with 8 additions and 8 deletions

View File

@ -193,15 +193,15 @@ namespace dlib
!*/
// This insanity here is to work around a bug in visual studio 8.
template <typename T, long N>
template <typename V, long N>
struct vc_rebind
{
typedef vector<T,N> type;
typedef vector<V,N> type;
};
template <typename T, typename U, long N>
template <typename V, typename U, long N>
struct vc_rebind_promote
{
typedef vector<typename promote<T,U>::type,N> type;
typedef vector<typename promote<V,U>::type,N> type;
};
public:
@ -585,15 +585,15 @@ namespace dlib
!*/
// This insanity here is to work around a bug in visual studio 8.
template <typename T, long N>
template <typename V, long N>
struct vc_rebind
{
typedef vector<T,N> type;
typedef vector<V,N> type;
};
template <typename T, typename U, long N>
template <typename V, typename U, long N>
struct vc_rebind_promote
{
typedef vector<typename promote<T,U>::type,N> type;
typedef vector<typename promote<V,U>::type,N> type;
};