From 02068c207958f29b7a9f1082259d8472675fda64 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 30 Sep 2009 21:41:30 -0700 Subject: [PATCH] Fix subr::nostream constness. --- libdw/c++/subr.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libdw/c++/subr.hh b/libdw/c++/subr.hh index 79e1c7559..a68d60449 100644 --- a/libdw/c++/subr.hh +++ b/libdw/c++/subr.hh @@ -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 - inline const nostream &operator<< (const arg &) const + inline const nostream & + operator<< (const arg &) const { return *this; } -- 2.47.3