Update of /cvsroot/boost/boost/boost/wave/util
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31356/boost/wave/util

Modified Files:
        cpp_iterator.hpp 
Log Message:
Wave: added handling of #import directives, fixed a problem in the Wave driver.

Index: cpp_iterator.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/wave/util/cpp_iterator.hpp,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- cpp_iterator.hpp    20 May 2007 00:28:20 -0000      1.62
+++ cpp_iterator.hpp    26 Jun 2007 19:40:03 -0000      1.63
@@ -1203,6 +1203,18 @@
 
     default:                // #something else
         on_illformed((*nodeval.begin()).get_value());
+        
+        // if we end up here, we have been instructed to ignore the error, so 
+        // we simply copy the whole construct to the output
+        {
+            token_sequence_type expanded;
+            get_token_value<result_type, parse_node_type> get_value;
+
+            std::copy(make_ref_transform_iterator(begin_child_it, get_value), 
+                make_ref_transform_iterator(end_child_it, get_value),
+                std::inserter(expanded, expanded.end()));
+            pending_queue.splice(pending_queue.begin(), expanded);
+        }
         break;
     }
     return true;    // return newline only


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to