Added constructor and virtual destructors to abstract_attribute class.
This commit is contained in:
@@ -31,7 +31,17 @@ class abstract_attribute {
|
|||||||
public:
|
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
|
//! This method needs to be implemented in classes derived from
|
||||||
//! \e abstract_attribute.
|
//! \e abstract_attribute.
|
||||||
@@ -58,10 +68,17 @@ public:
|
|||||||
//! \param object Reference to object of type T.
|
//! \param object Reference to object of type T.
|
||||||
//!
|
//!
|
||||||
explicit attribute(T &object)
|
explicit attribute(T &object)
|
||||||
: reference(object) {
|
: abstract_attribute()
|
||||||
|
, reference(object) {
|
||||||
BOOST_CONCEPT_ASSERT((boost::Assignable<T>));
|
BOOST_CONCEPT_ASSERT((boost::Assignable<T>));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//!
|
||||||
|
//! \brief Destructor
|
||||||
|
//!
|
||||||
|
virtual ~attribute() {
|
||||||
|
}
|
||||||
|
|
||||||
//!
|
//!
|
||||||
//! \brief Implementation of set_value method.
|
//! \brief Implementation of set_value method.
|
||||||
//!
|
//!
|
||||||
|
|||||||
Reference in New Issue
Block a user