]> git.stg.codes - stg.git/commitdiff
Added const version of GetPointer.
authorMaxim Mamontov <faust.madf@gmail.com>
Fri, 20 Jun 2014 22:10:48 +0000 (01:10 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Fri, 9 Jan 2015 20:30:50 +0000 (22:30 +0200)
include/stg/user_property.h

index 824c668e4ddc41794b78b61870bca7c02d9b3a2c..20ca6fd8052fe33336a3c66b89292a6da0462239 100644 (file)
@@ -81,6 +81,7 @@ public:
     virtual ~USER_PROPERTY_LOGGED() {}
 
     USER_PROPERTY_LOGGED<varT> * GetPointer() throw() { return this; }
+    const USER_PROPERTY_LOGGED<varT> * GetPointer() const throw() { return this; }
     const varT & Get() const { return USER_PROPERTY<varT>::ConstData(); }
     const std::string & GetName() const { return name; }
     bool Set(const varT & val,