]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/mem_fn.hpp
* lib/doc/Makefile.am:
[lyx.git] / boost / boost / mem_fn.hpp
index 7097d43bec5f9b715eec551b1a81b34c94177ca4..9695f57e80a7c529e23110b36829bd7fa65f9a60 100644 (file)
@@ -328,11 +328,6 @@ private:
         return (u.*f_);
     }
 
-    template<class U> R & call(U & u, T *) const
-    {
-        return (u.*f_);
-    }
-
     template<class U> R const & call(U & u, void const *) const
     {
         return (get_pointer(u)->*f_);
@@ -352,7 +347,7 @@ public:
         return (p->*f_);
     }
 
-    template<class U> R const & operator()(U & u) const
+    template<class U> R const & operator()(U const & u) const
     {
         return call(u, &u);
     }
@@ -364,13 +359,13 @@ public:
         return (t.*f_);
     }
 
-#endif
-
     R const & operator()(T const & t) const
     {
         return (t.*f_);
     }
 
+#endif
+
     bool operator==(dm const & rhs) const
     {
         return f_ == rhs.f_;