summaryrefslogtreecommitdiff
path: root/src/ast/attrs.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/attrs.hpp')
-rw-r--r--src/ast/attrs.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ast/attrs.hpp b/src/ast/attrs.hpp
index aa892d6d..f4e6af8d 100644
--- a/src/ast/attrs.hpp
+++ b/src/ast/attrs.hpp
@@ -28,8 +28,9 @@ public:
MetaItems clone() const;
- MetaItem* get(const char *name);
- bool has(const char *name) {
+ MetaItem* get(const char *name) { return const_cast<MetaItem*>( const_cast<const MetaItems*>(this)->get(name)); }
+ const MetaItem* get(const char *name) const;
+ bool has(const char *name) const {
return get(name) != 0;
}