]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/wave/samples/preprocess_pragma_output/preprocess_pragma_output.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / wave / samples / preprocess_pragma_output / preprocess_pragma_output.hpp
index 9c2415bdadbd9da1067551ffbf510a2f54f8348e..71d2e58552389fba3eb2195d3fdb47780c41441d 100644 (file)
@@ -115,7 +115,6 @@ public:
         typename Context::token_type const& option, 
         Container const& values, typename Context::token_type const& act_token)
     {
-        typedef typename Context::token_type token_type;
         typedef typename Context::iterator_type iterator_type;
 
         if (option.get_value() == "pp")  {
@@ -140,10 +139,10 @@ public:
                 Container pragma;
                 iterator_type end = ctx.end();
                 for (iterator_type it = ctx.begin(s.begin(), s.end()); 
-                     it != end && token_id(*it) != T_EOF; ++it) 
+                     it != end && token_id(*it) != T_EOF;
+                     std::advance(it, 2))  // skip over whitespace
                 {
                     pragma.push_back(*it);
-                    it++;
                 }
 
             // prepend the newly generated token sequence to the 'pending'