]> git.lyx.org Git - lyx.git/blobdiff - src/ShareContainer.h
fix reading the author field.
[lyx.git] / src / ShareContainer.h
index 084b044095668c1f7dbf5a307476240c52a137d0..fc44c3bfb5a752de1629ffaa79c4fa18f7b540ca 100644 (file)
@@ -1,4 +1,13 @@
 // -*- C++ -*-
+/**
+ * \file ShareContainer.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
 #ifndef SHARECONTAINER_H
 #define SHARECONTAINER_H
@@ -53,7 +62,7 @@ public:
        }
 private:
        /// A functor returning true if the elements are equal.
-       struct isEqual {
+       struct isEqual : public std::unary_function<value_type, bool> {
                isEqual(Share const & s) : p_(s) {}
                bool operator()(value_type const & p1) const {
                        return *p1.get() == p_;
@@ -62,7 +71,7 @@ private:
                Share const & p_;
        };
        /// A functor returning true if the element is unique.
-       struct isUnique {
+       struct isUnique : public std::unary_function<value_type, bool> {
                bool operator()(value_type const & p) const {
                        return p.unique();
                }