From 1da3d0a96259f4ecb375703bc7bc6ccfdd55ae47 Mon Sep 17 00:00:00 2001 From: Jens Luedicke Date: Sat, 22 Jan 2011 20:17:44 +0100 Subject: [PATCH] Added get_value method to attribute class. --- attributes.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/attributes.hpp b/attributes.hpp index 8f1da15..297d20b 100644 --- a/attributes.hpp +++ b/attributes.hpp @@ -37,6 +37,11 @@ public: reference = string2type::convert(value); } + virtual T& get_value() const { + return reference; + } + +private: T &reference; };