Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55773 - trunk/libs/program_options/src
From: ghost_at_[hidden]
Date: 2009-08-25 02:39:00


Author: vladimir_prus
Date: 2009-08-25 02:38:59 EDT (Tue, 25 Aug 2009)
New Revision: 55773
URL: http://svn.boost.org/trac/boost/changeset/55773

Log:
Avoid unnamed namespace, to please vacpp.

Closes #3232.

Text files modified:
   trunk/libs/program_options/src/parsers.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/program_options/src/parsers.cpp
==============================================================================
--- trunk/libs/program_options/src/parsers.cpp (original)
+++ trunk/libs/program_options/src/parsers.cpp 2009-08-25 02:38:59 EDT (Tue, 25 Aug 2009)
@@ -170,7 +170,7 @@
         return result;
     }
 
- namespace {
+ namespace detail {
         class prefix_name_mapper {
         public:
             prefix_name_mapper(const std::string& prefix)
@@ -199,7 +199,7 @@
     parse_environment(const options_description& desc,
                       const std::string& prefix)
     {
- return parse_environment(desc, prefix_name_mapper(prefix));
+ return parse_environment(desc, detail::prefix_name_mapper(prefix));
     }
 
     BOOST_PROGRAM_OPTIONS_DECL parsed_options


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk