Workaround for a problem in LogStream:
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: 31d9d2f6432a47c86a3640814024c107794ea77c@30213 0785d39b-7218-0410-832d-ea1e28bc413d

YongYang86/dealii,gpitton/dealii,sairajat/dealii,maieneuro/dealii,danshapero/dealii,sriharisundar/dealii,ibkim11/dealii,gpitton/dealii,mac-a/dealii,ESeNonFossiIo/dealii,jperryhouts/dealii,andreamola/dealii,kalj/dealii,rrgrove6/dealii,maieneuro/dealii,msteigemann/dealii,EGP-CIG-REU/dealii,natashasharma/dealii,shakirbsm/dealii,sairajat/dealii,pesser/dealii,kalj/dealii,naliboff/dealii,nicolacavallini/dealii,lue/dealii,Arezou-gh/dealii,natashasharma/dealii,johntfoster/dealii,mac-a/dealii,lue/dealii,rrgrove6/dealii,mtezzele/dealii,JaeryunYim/dealii,flow123d/dealii,spco/dealii,JaeryunYim/dealii,msteigemann/dealii,shakirbsm/dealii,ibkim11/dealii,spco/dealii,lpolster/dealii,Arezou-gh/dealii,angelrca/dealii,lpolster/dealii,rrgrove6/dealii,lpolster/dealii,adamkosik/dealii,pesser/dealii,JaeryunYim/dealii,lue/dealii,lue/dealii,sriharisundar/dealii,mtezzele/dealii,sriharisundar/dealii,sairajat/dealii,kalj/dealii,angelrca/dealii,sairajat/dealii,EGP-CIG-REU/dealii,andreamola/dealii,shakirbsm/dealii,angelrca/dealii,flow123d/dealii,jperryhouts/dealii,danshapero/dealii,andreamola/dealii,EGP-CIG-REU/dealii,danshapero/dealii,lpolster/dealii,adamkosik/dealii,gpitton/dealii,Arezou-gh/dealii,gpitton/dealii,rrgrove6/dealii,sairajat/dealii,ibkim11/dealii,adamkosik/dealii,adamkosik/dealii,maieneuro/dealii,lpolster/dealii,naliboff/dealii,lpolster/dealii,pesser/dealii,sairajat/dealii,maieneuro/dealii,ibkim11/dealii,flow123d/dealii,shakirbsm/dealii,mac-a/dealii,danshapero/dealii,lpolster/dealii,jperryhouts/dealii,angelrca/dealii,jperryhouts/dealii,adamkosik/dealii,angelrca/dealii,lue/dealii,sriharisundar/dealii,JaeryunYim/dealii,spco/dealii,msteigemann/dealii,msteigemann/dealii,EGP-CIG-REU/dealii,johntfoster/dealii,rrgrove6/dealii,flow123d/dealii,naliboff/dealii,msteigemann/dealii,jperryhouts/dealii,sriharisundar/dealii,YongYang86/dealii,andreamola/dealii,YongYang86/dealii,Arezou-gh/dealii,sriharisundar/dealii,nicolacavallini/dealii,lue/dealii,maieneuro/dealii,natashasharma/dealii,Arezou-gh/dealii,johntfoster/dealii,angelrca/dealii,natashasharma/dealii,ibkim11/dealii,nicolacavallini/dealii,msteigemann/dealii,ibkim11/dealii,flow123d/dealii,ESeNonFossiIo/dealii,pesser/dealii,YongYang86/dealii,spco/dealii,msteigemann/dealii,kalj/dealii,gpitton/dealii,jperryhouts/dealii,shakirbsm/dealii,flow123d/dealii,ESeNonFossiIo/dealii,JaeryunYim/dealii,nicolacavallini/dealii,Arezou-gh/dealii,rrgrove6/dealii,ESeNonFossiIo/dealii,nicolacavallini/dealii,natashasharma/dealii,nicolacavallini/dealii,mtezzele/dealii,ESeNonFossiIo/dealii,pesser/dealii,lue/dealii,johntfoster/dealii,gpitton/dealii,ibkim11/dealii,kalj/dealii,shakirbsm/dealii,YongYang86/dealii,mtezzele/dealii,naliboff/dealii,EGP-CIG-REU/dealii,johntfoster/dealii,mtezzele/dealii,sairajat/dealii,mac-a/dealii,rrgrove6/dealii,mtezzele/dealii,JaeryunYim/dealii,danshapero/dealii,mac-a/dealii,johntfoster/dealii,kalj/dealii,mtezzele/dealii,Arezou-gh/dealii,mac-a/dealii,EGP-CIG-REU/dealii,naliboff/dealii,andreamola/dealii,gpitton/dealii,angelrca/dealii,naliboff/dealii,adamkosik/dealii,shakirbsm/dealii,mac-a/dealii,EGP-CIG-REU/dealii,maieneuro/dealii,adamkosik/dealii,jperryhouts/dealii,ESeNonFossiIo/dealii,ESeNonFossiIo/dealii,spco/dealii,maieneuro/dealii,andreamola/dealii,kalj/dealii,johntfoster/dealii,JaeryunYim/dealii,andreamola/dealii,natashasharma/dealii,YongYang86/dealii,pesser/dealii,spco/dealii,natashasharma/dealii,danshapero/dealii,flow123d/dealii,danshapero/dealii,spco/dealii,naliboff/dealii,YongYang86/dealii,sriharisundar/dealii,nicolacavallini/dealii,pesser/dealii