From 8c133bd9b5f92bcdfcb0ce4ed6f7c82fcf1fbfd5 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Fri, 19 Oct 2007 16:23:30 +0000 Subject: git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@586520 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/FieldValue.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/framing/FieldValue.h') 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 #include #include @@ -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; }; -- cgit v1.2.1