]> www.ginac.de Git - ginac.git/blobdiff - ginac/print.h
build: shut up automake warnings, don't use GNU make extensions.
[ginac.git] / ginac / print.h
index c9e380fb80316c4e076583e39f0c218d3d632f99..e2ba2509292084155c7c00bc0b4c1d48a8f8a12b 100644 (file)
@@ -3,7 +3,7 @@
  *  Definition of helper classes for expression output. */
 
 /*
- *  GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -216,7 +216,7 @@ private:
 template <class T, class C>
 class print_memfun_handler : public print_functor_impl {
 public:
-       typedef void (T::*F)(const C & c, unsigned level);
+       typedef void (T::*F)(const C & c, unsigned level) const;
 
        print_memfun_handler(F f_) : f(f_) {}
        print_memfun_handler *duplicate() const { return new print_memfun_handler(*this); }
@@ -247,7 +247,7 @@ public:
        print_functor(void f(const T &, const C &, unsigned)) : impl(new print_ptrfun_handler<T, C>(f)) {}
 
        template <class T, class C>
-       print_functor(void (T::*f)(const C &, unsigned)) : impl(new print_memfun_handler<T, C>(f)) {}
+       print_functor(void (T::*f)(const C &, unsigned) const) : impl(new print_memfun_handler<T, C>(f)) {}
 
        print_functor & operator=(const print_functor & other)
        {