Compile error with VS.net 2003

Discussion on the (deprecated) VideoLAN Server application as well as the miniSAPserver stream announcer. This is not about VLC!
Forum rules
Please do not post VLC related questions in this forum category. See the Forum Rules for more information.
Yunin

Compile error with VS.net 2003

Postby Yunin » 20 Jan 2004 09:41

d:\PrjS\vls-0.5.5\src\core\hashtable.h(67) : error C2906: “C_HashMethod<unsigned int>”
d:\PrjS\vls-0.5.5\src\core\hashtable.h(80) : error C2906: “C_HashMethod<u16>”

.....

Why?
Who can help me?Thanks .

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 20 Jan 2004 10:20

I'm not entirly sure, but I don't think VS.net supports member templates, which this looks like. At least that's what I've heard. Try getting a compiler that works.

nm

Postby nm » 02 Feb 2004 03:24

I changed the hashtable.h file as follows and it seems to work ok:

//class C_HashMethod<u32> // changed to new syntax 040108
template <> class C_HashMethod<u32>
{
public:
inline C_HashMethod(u32 uiMaxHash);

inline u32 Hash(u32 iKey) const;
inline u32 GetMaxHash() const;

private:
u32 m_uiMaxHash;
};

//class C_HashMethod<u16> // changed to new syntax 040108
template <> class C_HashMethod<u16>
{
public:
inline C_HashMethod(u32 uiMaxHash);

inline u32 Hash(u16 iKey) const;
inline u32 GetMaxHash() const;

private:
u32 m_uiMaxHash;
};

//class C_HashMethod<handle> // changed to new syntax 040108
template <> class C_HashMethod<handle>
{
public:
inline C_HashMethod(u32 uiMaxHash);

inline u32 Hash(handle hKey) const;
inline u32 GetMaxHash() const;

private:
u32 m_uiMaxHash;
};


Return to “VideoLAN Server and miniSAPserver”

Who is online

Users browsing this forum: No registered users and 37 guests