FIFOBufferStream (g++ pacify)

This commit is contained in:
Aleksandar Fabijanic
2012-06-08 02:24:36 +00:00
parent cfbcce0481
commit 69bd6f6ee9
6 changed files with 17 additions and 14 deletions

View File

@@ -41,6 +41,7 @@
#include "Poco/Foundation.h"
#include "Poco/Exception.h"
#include <cstring>
#include <cstddef>
@@ -134,7 +135,7 @@ public:
/// is thrown.
{
if (!_ownMem)
throw InvalidAccessException("Cannot resize buffer which does not own its storage.");
throw Poco::InvalidAccessException("Cannot resize buffer which does not own its storage.");
poco_assert(newCapacity);

View File

@@ -132,8 +132,8 @@ class Foundation_API FIFOBufferStream: public FIFOIOS, public std::iostream
/// An output stream for writing to a FIFO.
{
public:
Poco::BasicEvent<bool>& readable;
Poco::BasicEvent<bool>& writable;
Poco::BasicEvent<bool>& readable;
explicit FIFOBufferStream(FIFOBuffer& buffer);
/// Creates the FIFOBufferStream with supplied buffer as initial value.