PortabilityImpl.cpp
Go to the documentation of this file.
00001 /*
00002  * PortabilityImpl.cpp
00003  *
00004  * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
00005  * Copyright 2002, Bastiaan Bakker. All rights reserved.
00006  *
00007  * See the COPYING file for the terms of usage and distribution.
00008  */
00009 
00010 /*
00011   This file contains various portability functions
00012 */
00013 
00014 #include "PortabilityImpl.hh"
00015 
00016 #ifndef LOG4CPP_HAVE_SSTREAM
00017 
00018 namespace std {
00019     std::string ostringstream::str() { 
00020         (*this) << '\0'; 
00021         std::string msg(ostrstream::str()); 
00022         ostrstream::freeze(false); //unfreeze stream 
00023         return msg;         
00024     } 
00025 }
00026 
00027 #endif


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung.
autogenerated on Thu Jan 2 2014 11:35:02