]> https://gitweb.dealii.org/ - dealii-svn.git/commit
Workaround for a problem in LogStream:
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 1 Aug 2013 23:00:22 +0000 (23:00 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 1 Aug 2013 23:00:22 +0000 (23:00 +0000)
commitbbca62b1cedd699ecdfd78fe817b06015bd83500
tree251322a797f81be844c63b307721797252890e69
parentcefb407e50b54f9a5ed20cfa4e1a6f7274fb9528
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.