diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2007-10-19 16:23:30 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2007-10-19 16:23:30 +0000 |
| commit | 8c133bd9b5f92bcdfcb0ce4ed6f7c82fcf1fbfd5 (patch) | |
| tree | 4c47c0f808b9e61cba11d8a8015f5d55ca567d79 /cpp/src/qpid/framing/FieldValue.h | |
| parent | f33b0010633359c55e75c1005d38118cbaf1ea39 (diff) | |
| download | qpid-python-8c133bd9b5f92bcdfcb0ce4ed6f7c82fcf1fbfd5.tar.gz | |
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@586520 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/FieldValue.h')
| -rw-r--r-- | cpp/src/qpid/framing/FieldValue.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/qpid/framing/FieldValue.h b/cpp/src/qpid/framing/FieldValue.h index 7e3d895b61..2a33201254 100644 --- a/cpp/src/qpid/framing/FieldValue.h +++ b/cpp/src/qpid/framing/FieldValue.h @@ -24,6 +24,8 @@ #include "Buffer.h" #include "amqp_types.h" +#include "assert.h" + #include <iostream> #include <memory> #include <vector> @@ -49,10 +51,10 @@ class FieldValue { virtual void decode(Buffer& buffer) = 0; virtual bool operator==(const Data&) const = 0; - virtual bool convertsToInt() const { return false; } + virtual bool convertsToInt() const { assert(0!=0); return false; } virtual bool convertsToString() const { return false; } - virtual int64_t getInt() const { return 0; } - virtual std::string getString() const { return ""; } + virtual int64_t getInt() const { assert(0!=0); return 0;} + virtual std::string getString() const { assert(0!=0); return ""; } virtual void print(std::ostream& out) const = 0; }; |
