Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62241 - in trunk/libs/parameter: doc test/literate
From: andrey.semashev_at_[hidden]
Date: 2010-05-26 12:30:15


Author: andysem
Date: 2010-05-26 12:30:14 EDT (Wed, 26 May 2010)
New Revision: 62241
URL: http://svn.boost.org/trac/boost/changeset/62241

Log:
Fixed test compilation with C++0x aware compilers. The bind and ref calls should be explicitly qualified with the boost namespace.
Text files modified:
   trunk/libs/parameter/doc/index.rst | 6 ++----
   trunk/libs/parameter/test/literate/lazy-default-computation1.cpp | 8 +++-----
   2 files changed, 5 insertions(+), 9 deletions(-)

Modified: trunk/libs/parameter/doc/index.rst
==============================================================================
--- trunk/libs/parameter/doc/index.rst (original)
+++ trunk/libs/parameter/doc/index.rst 2010-05-26 12:30:14 EDT (Wed, 26 May 2010)
@@ -1902,12 +1902,10 @@
 
 .. parsed-literal::
 
- using boost::bind;
- using boost::ref;
-
    typename parameter::binding<
        ArgumentPack, tag::s3, std::string
- >::type s3 = args[_s3 **|| bind(std::plus<std::string>(), ref(s1), ref(s2))** ];
+ >::type s3 = args[_s3
+ **|| boost::bind(std::plus<std::string>(), boost::ref(s1), boost::ref(s2))** ];
 
 .. @example.prepend('''
    #include <boost/bind.hpp>

Modified: trunk/libs/parameter/test/literate/lazy-default-computation1.cpp
==============================================================================
--- trunk/libs/parameter/test/literate/lazy-default-computation1.cpp (original)
+++ trunk/libs/parameter/test/literate/lazy-default-computation1.cpp 2010-05-26 12:30:14 EDT (Wed, 26 May 2010)
@@ -18,13 +18,11 @@
     std::string const& s1 = args[_s1];
     std::string const& s2 = args[_s2];
 #line 1905 "../../../../libs/parameter/doc/index.rst"
-using boost::bind;
-using boost::ref;
-
 typename parameter::binding<
     ArgumentPack, tag::s3, std::string
->::type s3 = args[_s3 || bind(std::plus<std::string>(), ref(s1), ref(s2)) ];
-#line 1931 "../../../../libs/parameter/doc/index.rst"
+>::type s3 = args[_s3
+ || boost::bind(std::plus<std::string>(), boost::ref(s1), boost::ref(s2)) ];
+#line 1930 "../../../../libs/parameter/doc/index.rst"
     return s3;
 }
 


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