From: bangerth Date: Tue, 6 Apr 2010 04:01:35 +0000 (+0000) Subject: Disambiguate comparison with 0 for gcc 4.5. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87923fc081522f3dcfcc03ed23237c429172f856;p=dealii-svn.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);