diff options
author | Aleric Inglewood | 2010-09-28 03:04:38 +0200 |
---|---|---|
committer | McCabe Maxsted | 2010-10-01 20:37:20 -0700 |
commit | 6e1078e55bef3ec22a42ee9cafba3277a5c930d2 (patch) | |
tree | 5640da31592ccc8f0b2cc1b4fef6fe2c34a6a363 /linden/indra/newview/llcommandlineparser.cpp | |
parent | RED-552: VWR-12838: NDOF is assumed to exist, even with --standalone. (diff) | |
download | meta-impy-6e1078e55bef3ec22a42ee9cafba3277a5c930d2.zip meta-impy-6e1078e55bef3ec22a42ee9cafba3277a5c930d2.tar.gz meta-impy-6e1078e55bef3ec22a42ee9cafba3277a5c930d2.tar.bz2 meta-impy-6e1078e55bef3ec22a42ee9cafba3277a5c930d2.tar.xz |
RED-554: SNOW-623: Add support for boost 1.42
See http://redmine.imprudenceviewer.org/issues/554
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llcommandlineparser.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/linden/indra/newview/llcommandlineparser.cpp b/linden/indra/newview/llcommandlineparser.cpp index c74406b..36b0e71 100644 --- a/linden/indra/newview/llcommandlineparser.cpp +++ b/linden/indra/newview/llcommandlineparser.cpp | |||
@@ -59,7 +59,7 @@ | |||
59 | 59 | ||
60 | namespace po = boost::program_options; | 60 | namespace po = boost::program_options; |
61 | 61 | ||
62 | // *NTOE:MEP - Currently the boost object reside in file scope. | 62 | // *NOTE:MEP - Currently the boost object reside in file scope. |
63 | // This has a couple of negatives, they are always around and | 63 | // This has a couple of negatives, they are always around and |
64 | // there can be only one instance of each. | 64 | // there can be only one instance of each. |
65 | // The plus is that the boost-ly-ness of this implementation is | 65 | // The plus is that the boost-ly-ness of this implementation is |
@@ -162,6 +162,12 @@ public: | |||
162 | return mIsComposing; | 162 | return mIsComposing; |
163 | } | 163 | } |
164 | 164 | ||
165 | // Needed for boost 1.42 | ||
166 | virtual bool is_required() const | ||
167 | { | ||
168 | return false; // All our command line options are optional. | ||
169 | } | ||
170 | |||
165 | virtual bool apply_default(boost::any& value_store) const | 171 | virtual bool apply_default(boost::any& value_store) const |
166 | { | 172 | { |
167 | return false; // No defaults. | 173 | return false; // No defaults. |
@@ -268,7 +274,11 @@ bool LLCommandLineParser::parseAndStoreResults(po::command_line_parser& clp) | |||
268 | { | 274 | { |
269 | clp.options(gOptionsDesc); | 275 | clp.options(gOptionsDesc); |
270 | clp.positional(gPositionalOptions); | 276 | clp.positional(gPositionalOptions); |
271 | clp.style(po::command_line_style::default_style | 277 | // SNOW-626: Boost 1.42 erroneously added allow_guessing to the default style |
278 | // (see http://groups.google.com/group/boost-list/browse_thread/thread/545d7bf98ff9bb16?fwc=2&pli=1) | ||
279 | // Remove allow_guessing from the default style, because that is not allowed | ||
280 | // when we have options that are a prefix of other options (aka, --help and --helperuri). | ||
281 | clp.style((po::command_line_style::default_style & ~po::command_line_style::allow_guessing) | ||
272 | | po::command_line_style::allow_long_disguise); | 282 | | po::command_line_style::allow_long_disguise); |
273 | if(mExtraParser) | 283 | if(mExtraParser) |
274 | { | 284 | { |