]> 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:10:03 +0000 (23:10 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 1 Aug 2013 23:10:03 +0000 (23:10 +0000)
commit1ae038ba3988438911ff8a9e50332799bf9d5962
tree549f1d468ea84903d6040dee7fe3619055b113b8
parent7f892af32a3d42e95a14817aaa3e264918a2f931
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/branches/branch_port_to_libcxx@30215 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.