Thanks to visit codestin.com
Credit goes to sourceforge.net

Menu

[31e5cd]: / src / PortabilityImpl.cpp  Maximize  Restore  History

Download this file

28 lines (22 with data), 589 Bytes

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