mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed compile error in gcc
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402738
This commit is contained in:
parent
1f8cd9c371
commit
77e5542373
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user