diff options
| author | Manuel Teira Paz <mteira@apache.org> | 2009-03-05 16:07:55 +0000 |
|---|---|---|
| committer | Manuel Teira Paz <mteira@apache.org> | 2009-03-05 16:07:55 +0000 |
| commit | 7506ad8980081ce43ffab3931a19cd0b52e29bb6 (patch) | |
| tree | 3621cac9b7d64f630886fa8a1db1e3d912d5dfe4 /cpp | |
| parent | 773c8df10686a515b8b57ca3c68f8f1887a55497 (diff) | |
| download | qpid-python-7506ad8980081ce43ffab3931a19cd0b52e29bb6.tar.gz | |
Add a pair of missing std:: namespaces
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750487 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/qpid/sys/Codec.h | 4 | ||||
| -rw-r--r-- | cpp/src/qpid/sys/CopyOnWriteArray.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/sys/Codec.h b/cpp/src/qpid/sys/Codec.h index f9645f554e..ace721fbcc 100644 --- a/cpp/src/qpid/sys/Codec.h +++ b/cpp/src/qpid/sys/Codec.h @@ -38,11 +38,11 @@ class Codec * @return may be less than size if there was incomplete * data at the end of the buffer. */ - virtual size_t decode(const char* buffer, size_t size) = 0; + virtual std::size_t decode(const char* buffer, std::size_t size) = 0; /** Encode into buffer, return number of bytes encoded */ - virtual size_t encode(const char* buffer, size_t size) = 0; + virtual std::size_t encode(const char* buffer, std::size_t size) = 0; /** Return true if we have data to encode */ virtual bool canEncode() = 0; diff --git a/cpp/src/qpid/sys/CopyOnWriteArray.h b/cpp/src/qpid/sys/CopyOnWriteArray.h index a09ee9d441..577a475afd 100644 --- a/cpp/src/qpid/sys/CopyOnWriteArray.h +++ b/cpp/src/qpid/sys/CopyOnWriteArray.h @@ -80,7 +80,7 @@ public: bool add_unless(T& t, F f) { Mutex::ScopedLock l(lock); - if (array && find_if(array->begin(), array->end(), f) != array->end()) { + if (array && std::find_if(array->begin(), array->end(), f) != array->end()) { return false; } else { ArrayPtr copy(array ? new std::vector<T>(*array) : new std::vector<T>()); |
