]> https://gitweb.dealii.org/ - dealii.git/commit
Workaround for a problem in LogStream:
authorMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 1 Aug 2013 23:00:22 +0000 (23:00 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 1 Aug 2013 23:00:22 +0000 (23:00 +0000)
commitf76d024a5a07222efb2287b0e1ba3ef426e720f2
tree0c65bf7351889412f8992f9670047d7c83dd1b32
parent4b5238e381b93003e509d2f71aa35972d3efcec8
Workaround for a problem in LogStream:

It is invalid to test for std::flush or std::endl with function pointers,

  std::ostream & (* const p_flush) (std::ostream &) = &std::flush; p ==
  p_flush ? ...,

as there could be multiple versions of of it.

And in fact, LLVM's libc++ implements std::flush and std::endl in a way
that every shared library and executable has its local copy.

Fix this by implementing a custom streambuf class that queries this sort of
information.

git-svn-id: https://svn.dealii.org/trunk@30213 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/source/base/logstream.cc

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.