mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 07:14:46 +02:00
clang compile
This commit is contained in:
@@ -64,7 +64,7 @@ public:
|
|||||||
typedef typename Struct<K>::Data::value_type ValueType;
|
typedef typename Struct<K>::Data::value_type ValueType;
|
||||||
typedef typename Struct<K>::Data::size_type SizeType;
|
typedef typename Struct<K>::Data::size_type SizeType;
|
||||||
typedef typename std::pair<typename Struct<K>::Iterator, bool> InsRetVal;
|
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()
|
Struct(): _data()
|
||||||
/// Creates an empty Struct
|
/// Creates an empty Struct
|
||||||
|
@@ -522,7 +522,7 @@ public:
|
|||||||
bool isString() const;
|
bool isString() const;
|
||||||
/// Returns true if stored value is std::string.
|
/// 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.
|
/// Returns the size of this Var.
|
||||||
/// This function returns 0 when Var is empty, 1 for POD or the size (i.e. length)
|
/// This function returns 0 when Var is empty, 1 for POD or the size (i.e. length)
|
||||||
/// for held container.
|
/// for held container.
|
||||||
|
@@ -2856,8 +2856,8 @@ public:
|
|||||||
if (n >= size())
|
if (n >= size())
|
||||||
throw RangeException("List index out of range");
|
throw RangeException("List index out of range");
|
||||||
|
|
||||||
std::list<T>::size_type counter = 0;
|
typename std::list<T>::size_type counter = 0;
|
||||||
std::list<T>::iterator it = _val.begin();
|
typename std::list<T>::iterator it = _val.begin();
|
||||||
for (; counter < n; ++counter) ++it;
|
for (; counter < n; ++counter) ++it;
|
||||||
|
|
||||||
return *it;
|
return *it;
|
||||||
@@ -2868,8 +2868,8 @@ public:
|
|||||||
if (n >= size())
|
if (n >= size())
|
||||||
throw RangeException("List index out of range");
|
throw RangeException("List index out of range");
|
||||||
|
|
||||||
std::list<T>::size_type counter = 0;
|
typename std::list<T>::size_type counter = 0;
|
||||||
std::list<T>::const_iterator it = _val.begin();
|
typename std::list<T>::const_iterator it = _val.begin();
|
||||||
for (; counter < n; ++counter) ++it;
|
for (; counter < n; ++counter) ++it;
|
||||||
|
|
||||||
return *it;
|
return *it;
|
||||||
|
Reference in New Issue
Block a user