Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55218 - trunk/boost/spirit/home/qi/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-07-30 14:43:50


Author: hkaiser
Date: 2009-07-27 20:38:07 EDT (Mon, 27 Jul 2009)
New Revision: 55218
URL: http://svn.boost.org/trac/boost/changeset/55218

Log:
Spirit: fixing compilation issues
Text files modified:
   trunk/boost/spirit/home/qi/detail/unused_skipper.hpp | 15 +++++++--------
   1 files changed, 7 insertions(+), 8 deletions(-)

Modified: trunk/boost/spirit/home/qi/detail/unused_skipper.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/detail/unused_skipper.hpp (original)
+++ trunk/boost/spirit/home/qi/detail/unused_skipper.hpp 2009-07-27 20:38:07 EDT (Mon, 27 Jul 2009)
@@ -26,20 +26,19 @@
     // skipper is of the type unused_skipper. In this case we
     // re-activate the skipper which was active before the skip[]
     // directive.
- template <typename Skipper, typename Default>
+ template <typename Skipper>
     inline Skipper const&
- get_skipper(unused_skipper<Skipper> const& u, Default const&)
+ get_skipper(unused_skipper<Skipper> const& u)
     {
         return u.skipper;
     }
 
- // If no surrounding lexeme[] directive was specified we activate
- // a default skipper to use.
- template <typename Skipper, typename Default>
- inline Default const&
- get_skipper(Skipper const&, Default const& d)
+ // If no surrounding lexeme[] directive was specified we keep what we got.
+ template <typename Skipper>
+ inline Skipper const&
+ get_skipper(Skipper const& u)
     {
- return d;
+ return u;
     }
 
 }}}}


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