clang compile

This commit is contained in:
Aleksandar Fabijanic
2013-05-27 21:05:12 -05:00
parent 38131d452d
commit aa6e993734
3 changed files with 6 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ public:
typedef typename Struct<K>::Data::value_type ValueType;
typedef typename Struct<K>::Data::size_type SizeType;
typedef typename std::pair<typename Struct<K>::Iterator, bool> InsRetVal;
typedef typename SharedPtr<Struct<K> > Ptr;
typedef typename SharedPtr<typename Struct<K> > Ptr;
Struct(): _data()
/// Creates an empty Struct

View File

@@ -522,7 +522,7 @@ public:
bool isString() const;
/// Returns true if stored value is std::string.
std::size_t Var::size() const;
std::size_t size() const;
/// Returns the size of this Var.
/// This function returns 0 when Var is empty, 1 for POD or the size (i.e. length)
/// for held container.

View File

@@ -2856,8 +2856,8 @@ public:
if (n >= size())
throw RangeException("List index out of range");
std::list<T>::size_type counter = 0;
std::list<T>::iterator it = _val.begin();
typename std::list<T>::size_type counter = 0;
typename std::list<T>::iterator it = _val.begin();
for (; counter < n; ++counter) ++it;
return *it;
@@ -2868,8 +2868,8 @@ public:
if (n >= size())
throw RangeException("List index out of range");
std::list<T>::size_type counter = 0;
std::list<T>::const_iterator it = _val.begin();
typename std::list<T>::size_type counter = 0;
typename std::list<T>::const_iterator it = _val.begin();
for (; counter < n; ++counter) ++it;
return *it;