From: Wolfgang Bangerth Date: Tue, 6 Apr 2010 04:01:35 +0000 (+0000) Subject: Disambiguate comparison with 0 for gcc 4.5. X-Git-Tag: v8.0.0~6238 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb5e9ad61eb690863d62fbc8a9fda0f33d75d4ff;p=dealii.git Disambiguate comparison with 0 for gcc 4.5. git-svn-id: https://svn.dealii.org/trunk@20942 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/logstream.cc b/deal.II/base/source/logstream.cc index 76d930f8ac..b6c18fbfb2 100644 --- a/deal.II/base/source/logstream.cc +++ b/deal.II/base/source/logstream.cc @@ -141,7 +141,7 @@ LogStream::get_stream() const unsigned int id = Threads::this_thread_id(); std_cxx1x::shared_ptr& sptr = outstreams[id]; - if (sptr == 0) + if (sptr == std_cxx1x::shared_ptr()) { sptr = std_cxx1x::shared_ptr (new std::ostringstream()); sptr->setf(std::ios::showpoint | std::ios::left);