]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Disambiguate comparison with 0 for gcc 4.5.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Apr 2010 04:01:35 +0000 (04:01 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Apr 2010 04:01:35 +0000 (04:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@20942 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/logstream.cc

index 76d930f8acd6bec51ed6033c90f5e4637eab3d72..b6c18fbfb28507866841b01b79e95ef37a10732a 100644 (file)
@@ -141,7 +141,7 @@ LogStream::get_stream()
   const unsigned int id = Threads::this_thread_id();
 
   std_cxx1x::shared_ptr<std::ostringstream>& sptr = outstreams[id];
-  if (sptr == 0)
+  if (sptr == std_cxx1x::shared_ptr<std::ostringstream>())
     {
       sptr = std_cxx1x::shared_ptr<std::ostringstream> (new std::ostringstream());
       sptr->setf(std::ios::showpoint | std::ios::left);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.