From ee303aa707219310c9c6638462a8d2631cd5891f Mon Sep 17 00:00:00 2001 From: Jens Luedicke Date: Sun, 23 Jan 2011 17:21:26 +0100 Subject: [PATCH] Added constructor and virtual destructors to abstract_attribute class. --- src/attributes.hpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/attributes.hpp b/src/attributes.hpp index 391d096..339fe18 100644 --- a/src/attributes.hpp +++ b/src/attributes.hpp @@ -31,7 +31,17 @@ class abstract_attribute { public: //! - //! Pure virtual method. + //! \brief Constructor. + //! + abstract_attribute() {} + + //! + //! \brief Destructor. + //! + virtual ~abstract_attribute() {} + + //! + //! \brief Pure virtual method. //! //! This method needs to be implemented in classes derived from //! \e abstract_attribute. @@ -58,10 +68,17 @@ public: //! \param object Reference to object of type T. //! explicit attribute(T &object) - : reference(object) { + : abstract_attribute() + , reference(object) { BOOST_CONCEPT_ASSERT((boost::Assignable)); } + //! + //! \brief Destructor + //! + virtual ~attribute() { + } + //! //! \brief Implementation of set_value method. //!