summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/concept.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'starts/meaning-vm/concept.hpp')
-rw-r--r--starts/meaning-vm/concept.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/starts/meaning-vm/concept.hpp b/starts/meaning-vm/concept.hpp
index a2dcc2c..a80b157 100644
--- a/starts/meaning-vm/concept.hpp
+++ b/starts/meaning-vm/concept.hpp
@@ -12,11 +12,14 @@ struct ref
{
ref(concept *p) : ptr(p) { }
concept* operator->() { return ptr; }
+
+ // for use by containers
bool operator<(ref const & other) const { return ptr < other.ptr; }
- // helper names
+ // for helpers
ref(std::string const &);
ref(char const * str) : ref(std::string(str)) { }
+ ref() : ref("nothing") { }
value<std::string> & name() const;
operator const char *() const;