]> 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:10:03 +0000 (23:10 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 1 Aug 2013 23:10:03 +0000 (23:10 +0000)
commit8e5e84e46b7f36b6ba40a60ca60401d2a5cc23ff
treecbc85fceb9ac96b20842c8075ee0188d4eac4e81
parent043ba1672ed66cf8c476b434a8bf895427036b68
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.