From 34f7894255b5430d255fefa153fcb49fc112a869 Mon Sep 17 00:00:00 2001 From: mizipzor Date: Fri, 19 Feb 2010 20:51:33 +0100 Subject: [PATCH] one constructor had three compile errors, just commented it out --- library/argstream/argstream.h | 58 +++++++++++++++++------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/library/argstream/argstream.h b/library/argstream/argstream.h index 76c2aade0..aa5bdaa49 100644 --- a/library/argstream/argstream.h +++ b/library/argstream/argstream.h @@ -218,7 +218,7 @@ namespace { public: inline argstream(int argc,char** argv); - inline argstream(const char* c); + //inline argstream(const char* c); template friend argstream& operator>>(argstream& s,const ValueHolder& v); friend inline argstream& operator>>(argstream& s,const OptionHolder& v); @@ -408,34 +408,34 @@ namespace { parse(argc,argv); } - inline - argstream::argstream(const char* c) - : progName_(""), - minusActive_(true), - isOk_(true) - { - std::string s(c); - // Build argc, argv from s. We must add a dummy first element for - // progName because parse() expects it!! - std::deque args; - args.push_back(""); - std::istringstream is(s); - while (is.good()) - { - std::string t; - is>>t; - args.push_back(t); - } - char* pargs[args.size()]; - char** p = pargs; - for (std::deque::const_iterator - iter = args.begin(); - iter != args.end();++iter) - { - *p++ = const_cast(iter->c_str()); - } - parse(args.size(),pargs); - } + //inline + // argstream::argstream(const char* c) + // : progName_(""), + // minusActive_(true), + // isOk_(true) + //{ + // std::string s(c); + // // Build argc, argv from s. We must add a dummy first element for + // // progName because parse() expects it!! + // std::deque args; + // args.push_back(""); + // std::istringstream is(s); + // while (is.good()) + // { + // std::string t; + // is>>t; + // args.push_back(t); + // } + // char* pargs[args.size()]; + // char** p = pargs; + // for (std::deque::const_iterator + // iter = args.begin(); + // iter != args.end();++iter) + // { + // *p++ = const_cast(iter->c_str()); + // } + // parse(args.size(),pargs); + //} inline void argstream::parse(int argc,char** argv) {