]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/format/internals.hpp
boost 1.30.2
[lyx.git] / boost / boost / format / internals.hpp
index 4e732eb437525abe7a690a3766f4e903ec6302b1..52448b731c2f6da09ba656d7354cfe3b831dba64 100644 (file)
@@ -23,7 +23,6 @@
 
 
 #include <string>
-#include <ios>
 #include <sstream>
 
 namespace boost {
@@ -80,8 +79,8 @@ struct format_item
   string_t    res_;            //- result of the formatting of this item
   string_t    appendix_;       //- piece of string between this item and the next
 
-  stream_format_state state_;  // can be modified by manipulators
-  stream_format_state ref_state_;// set from the format_string, is only affected by modify_item
+  stream_format_state ref_state_;// set by parsing the format_string, is only affected by modify_item
+  stream_format_state state_;  // always same as ref_state, _unless_ modified by manipulators 'group(..)'
 
   // non-stream format-state parameters
   signed int truncate_;        //- is >=0 for directives like %.5s (take 5 chars from the string)
@@ -146,7 +145,7 @@ void stream_format_state<Ch,Tr> ::reset()
 template<class Ch, class Tr> inline
 void format_item<Ch, Tr> ::compute_states() 
   // reflect pad_scheme_   on  state_ and ref_state_ 
-  //   because some apd_schemes has complex consequences on several state params.
+  //   because some pad_schemes has complex consequences on several state params.
 {
   if(pad_scheme_ & zeropad) 
   {