L
Laax
Hi all,
I get Partial Specilization error while trying to compile the
following code in environment [ Sun WorkShop 6 update 2 C++ 5.3 ]. I
could not locate the error. Please show me some light.
Thanks.
Here is the complete code(developed by someone else sometime back).
----------------------------------------------------------------
#include <ACValSrtArray.h>
template <class K, class V>
class ACDictItem <K, V>
{
public:
ACDictItem ();
ACDictItem (const K&);
ACDictItem (const K&, const V&);
ACDictItem (const ACDictItem& x);
~ACDictItem ();
ACDictItem<K, V>& operator= (const ACDictItem<K,V>& rhs);
friend int operator ==
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator !=
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator >
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator <
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator >=
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator <=
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
K key;
V value;
};
template <class K, class V>
class ACValDictionary : public ACValSrtArray< ACDictItem<K, V> >
{
public:
ACValDictionary(int count = 32 );
ACValDictionary(const ACValDictionary<K, V>& from);
virtual ~ACValDictionary();
int containsKey (const K& key) const;
virtual int indexKey(const K& src) const;
virtual void insertKeyValue(const K& key, const V& value);
virtual void appendKeyValue(const K& key, const V& value);
virtual int removeKey(const K& src );
virtual int removeKeyAll(const K& src );
ACDictItem<K, V>& operator=( const ACDictItem<K, V>& rhs );
V operator[](const K&) const;
V& operator[](const K&);
V at (int) const;
V& at (int);
private:
};
I get Partial Specilization error while trying to compile the
following code in environment [ Sun WorkShop 6 update 2 C++ 5.3 ]. I
could not locate the error. Please show me some light.
Thanks.
Here is the complete code(developed by someone else sometime back).
----------------------------------------------------------------
#include <ACValSrtArray.h>
template <class K, class V>
class ACDictItem <K, V>
{
public:
ACDictItem ();
ACDictItem (const K&);
ACDictItem (const K&, const V&);
ACDictItem (const ACDictItem& x);
~ACDictItem ();
ACDictItem<K, V>& operator= (const ACDictItem<K,V>& rhs);
friend int operator ==
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator !=
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator >
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator <
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator >=
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
friend int operator <=
(const ACDictItem<K,V>& lhs, const ACDictItem<K,V>&
rhs);
K key;
V value;
};
template <class K, class V>
class ACValDictionary : public ACValSrtArray< ACDictItem<K, V> >
{
public:
ACValDictionary(int count = 32 );
ACValDictionary(const ACValDictionary<K, V>& from);
virtual ~ACValDictionary();
int containsKey (const K& key) const;
virtual int indexKey(const K& src) const;
virtual void insertKeyValue(const K& key, const V& value);
virtual void appendKeyValue(const K& key, const V& value);
virtual int removeKey(const K& src );
virtual int removeKeyAll(const K& src );
ACDictItem<K, V>& operator=( const ACDictItem<K, V>& rhs );
V operator[](const K&) const;
V& operator[](const K&);
V at (int) const;
V& at (int);
private:
};