Remove some unused code related to sstream fixes.

This commit is contained in:
Daniel Aarno 2018-01-02 16:21:29 +01:00
parent ec3ddcfe41
commit de93e6b2ca
2 changed files with 0 additions and 18 deletions

View File

@ -39,16 +39,6 @@
#include <tclap/sstream.h>
#if defined(HAVE_SSTREAM)
#include <sstream>
typedef std::istringstream istringstream;
#elif defined(HAVE_STRSTREAM)
#include <strstream>
typedef std::istrstream istringstream;
#else
#error "Need a stringstream (sstream or strstream) to compile!"
#endif
#include <tclap/ArgException.h>
#include <tclap/Visitor.h>
#include <tclap/CmdLineInterface.h>

View File

@ -93,15 +93,7 @@ ValuesConstraint<T>::ValuesConstraint(std::vector<T>& allowed)
{
for ( unsigned int i = 0; i < _allowed.size(); i++ )
{
#if defined(HAVE_SSTREAM)
std::ostringstream os;
#elif defined(HAVE_STRSTREAM)
std::ostrstream os;
#else
#error "Need a stringstream (sstream or strstream) to compile!"
#endif
os << _allowed[i];
std::string temp( os.str() );