PortabilityImpl.cpp
Go to the documentation of this file.
1 /*
2  * PortabilityImpl.cpp
3  *
4  * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5  * Copyright 2002, Bastiaan Bakker. All rights reserved.
6  *
7  * See the COPYING file for the terms of usage and distribution.
8  */
9 
10 /*
11  This file contains various portability functions
12 */
13 
14 #include "PortabilityImpl.hh"
15 
16 #ifndef LOG4CPP_HAVE_SSTREAM
17 
18 namespace std {
19  std::string ostringstream::str() {
20  (*this) << '\0';
21  std::string msg(ostrstream::str());
22  ostrstream::freeze(false); //unfreeze stream
23  return msg;
24  }
25 }
26 
27 #endif


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00