1.1 --- a/lemon/lemon_reader.h Tue Mar 27 09:23:33 2007 +0000
1.2 +++ b/lemon/lemon_reader.h Fri Mar 30 14:17:28 2007 +0000
1.3 @@ -1951,16 +1951,16 @@
1.4 ///
1.5 /// Add an attribute reader command for the reader.
1.6 template <typename Value>
1.7 - AttributeReader& readAttribute(const std::string& id, Value& value) {
1.8 + AttributeReader& readAttribute(const std::string& label, Value& value) {
1.9 return readAttribute<typename Traits::template Reader<Value> >
1.10 - (id, value);
1.11 + (label, value);
1.12 }
1.13
1.14 /// \brief Add an attribute reader command for the reader.
1.15 ///
1.16 /// Add an attribute reader command for the reader.
1.17 template <typename ItemReader, typename Value>
1.18 - AttributeReader& readAttribute(std::string label, Value& value,
1.19 + AttributeReader& readAttribute(const std::string& label, Value& value,
1.20 const ItemReader& ir = ItemReader()) {
1.21 checkConcept<_reader_bits::ItemReader<Value>, ItemReader>();
1.22 if (readers.find(label) != readers.end()) {
1.23 @@ -2012,7 +2012,7 @@
1.24 }
1.25 }
1.26 }
1.27 -
1.28 +
1.29 virtual void missing() {
1.30 if (readers.empty()) return;
1.31 ErrorMessage msg;