]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix subr::nostream constness.
authorRoland McGrath <roland@redhat.com>
Thu, 1 Oct 2009 04:41:30 +0000 (21:41 -0700)
committerRoland McGrath <roland@redhat.com>
Thu, 1 Oct 2009 04:41:30 +0000 (21:41 -0700)
libdw/c++/subr.hh

index 79e1c7559623ba36912b14bc541b09b31689487e..a68d6044954103504c7fafe32ec7af7f9cb7e2e2 100644 (file)
@@ -1363,13 +1363,15 @@ namespace elfutils
        place of std::cout et al for disabled debugging spew.  */
     struct nostream
     {
-      inline const nostream &operator<< (std::ostream &(*) (std::ostream &))
+      inline const nostream &
+      operator<< (std::ostream &(*) (std::ostream &)) const
       {
        return *this;
       }
 
       template<typename arg>
-      inline const nostream &operator<< (const arg &) const
+      inline const nostream &
+      operator<< (const arg &) const
       {
        return *this;
       }