$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r73387 - trunk/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-07-26 16:21:00
Author: danieljames
Date: 2011-07-26 16:20:59 EDT (Tue, 26 Jul 2011)
New Revision: 73387
URL: http://svn.boost.org/trac/boost/changeset/73387
Log:
Quickbook: Use `struct` consistently.
Visual C++ likes consistency, the easiest way to do that is to always use
one or the other.
Text files modified: 
   trunk/tools/quickbook/src/id_generator.cpp |     2 +-                                      
   trunk/tools/quickbook/src/id_generator.hpp |     4 ++--                                    
   trunk/tools/quickbook/src/post_process.hpp |     2 +-                                      
   trunk/tools/quickbook/src/utils.cpp        |     6 +++---                                  
   trunk/tools/quickbook/src/values.hpp       |    40 ++++++++++++++++++++--------------------
   5 files changed, 27 insertions(+), 27 deletions(-)
Modified: trunk/tools/quickbook/src/id_generator.cpp
==============================================================================
--- trunk/tools/quickbook/src/id_generator.cpp	(original)
+++ trunk/tools/quickbook/src/id_generator.cpp	2011-07-26 16:20:59 EDT (Tue, 26 Jul 2011)
@@ -17,7 +17,7 @@
 {
     // string_ref
 
-    class string_ref
+    struct string_ref
     {
     public:
         typedef std::string::const_iterator iterator;
Modified: trunk/tools/quickbook/src/id_generator.hpp
==============================================================================
--- trunk/tools/quickbook/src/id_generator.hpp	(original)
+++ trunk/tools/quickbook/src/id_generator.hpp	2011-07-26 16:20:59 EDT (Tue, 26 Jul 2011)
@@ -16,9 +16,9 @@
 
 namespace quickbook
 {
-    class string_ref;
+    struct string_ref;
 
-    class id_generator
+    struct id_generator
     {
     public:
 
Modified: trunk/tools/quickbook/src/post_process.hpp
==============================================================================
--- trunk/tools/quickbook/src/post_process.hpp	(original)
+++ trunk/tools/quickbook/src/post_process.hpp	2011-07-26 16:20:59 EDT (Tue, 26 Jul 2011)
@@ -19,7 +19,7 @@
       , int indent = -1
       , int linewidth = -1);
 
-    class post_process_failure : public std::runtime_error
+    struct post_process_failure : public std::runtime_error
     {
     public:
         explicit post_process_failure(std::string const& error)
Modified: trunk/tools/quickbook/src/utils.cpp
==============================================================================
--- trunk/tools/quickbook/src/utils.cpp	(original)
+++ trunk/tools/quickbook/src/utils.cpp	2011-07-26 16:20:59 EDT (Tue, 26 Jul 2011)
@@ -139,7 +139,7 @@
     // Although, given how UTF-8 works, if we've read anything in, the files
     // probably broken.
 
-    template <class InputIterator, class OutputIterator>
+    template <typename InputIterator, typename OutputIterator>
     bool check_bom(InputIterator& begin, InputIterator end,
             OutputIterator out, char const* chars, int length)
     {
@@ -158,7 +158,7 @@
         return false;
     }
     
-    template <class InputIterator, class OutputIterator>
+    template <typename InputIterator, typename OutputIterator>
     std::string read_bom(InputIterator& begin, InputIterator end,
             OutputIterator out)
     {
@@ -189,7 +189,7 @@
     // Copy a string, converting mac and windows style newlines to unix
     // newlines.
 
-    template <class InputIterator, class OutputIterator>
+    template <typename InputIterator, typename OutputIterator>
     bool normalize(InputIterator begin, InputIterator end,
             OutputIterator out, fs::path const& filename)
     {
Modified: trunk/tools/quickbook/src/values.hpp
==============================================================================
--- trunk/tools/quickbook/src/values.hpp	(original)
+++ trunk/tools/quickbook/src/values.hpp	2011-07-26 16:20:59 EDT (Tue, 26 Jul 2011)
@@ -22,17 +22,17 @@
 
 namespace quickbook
 {
-    class value;
-    class stored_value;
-    class value_builder;
-    class value_error;
+    struct value;
+    struct stored_value;
+    struct value_builder;
+    struct value_error;
 
     namespace detail
     {
         ////////////////////////////////////////////////////////////////////////
         // Node
     
-        class value_node
+        struct value_node
         {
         private:
             value_node(value_node const&);
@@ -81,10 +81,10 @@
         // This defines most of the public methods for value.
         // 'begin' and 'end' are defined with the iterators later.
     
-        class value_base
+        struct value_base
         {
         public:
-            class iterator;
+            struct iterator;
 
             typedef iterator const_iterator;
             typedef value_node::tag_type tag_type;
@@ -133,20 +133,20 @@
 
             // value_builder needs to access 'value_' to get the node
             // from a value.
-            friend class quickbook::value_builder;
-            friend class quickbook::stored_value;
+            friend struct quickbook::value_builder;
+            friend struct quickbook::stored_value;
         };
         
         ////////////////////////////////////////////////////////////////////////
         // Reference and proxy values for use in iterators
 
-        class value_ref : public value_base
+        struct value_ref : public value_base
         {
         public:
             explicit value_ref(value_node* base) : value_base(base) {}
         };
         
-        class value_proxy : public value_base
+        struct value_proxy : public value_base
         {
         public:
             explicit value_proxy(value_node* base) : value_base(base) {}
@@ -157,7 +157,7 @@
         ////////////////////////////////////////////////////////////////////////
         // Iterators
 
-        class value_base::iterator
+        struct value_base::iterator
             : public boost::forward_iterator_helper<
                 iterator, value, int, value_proxy, value_ref>
         {
@@ -186,7 +186,7 @@
         ////////////////////////////////////////////////////////////////////////
         // Reference counting for values
 
-        class value_counted : public value_base
+        struct value_counted : public value_base
         {
             value_counted& operator=(value_counted const&);
         protected:
@@ -203,7 +203,7 @@
         // Values are immutable, so this class is used to build a list of
         // value nodes before constructing the value.
 
-        class value_list_builder {
+        struct value_list_builder {
             value_list_builder(value_list_builder const&);
             value_list_builder& operator=(value_list_builder const&);
         public:
@@ -226,7 +226,7 @@
     //
     // Most of the methods are in value_base.
 
-    class value : public detail::value_counted
+    struct value : public detail::value_counted
     {
     public:
         value();
@@ -237,7 +237,7 @@
         void swap(value& x) { detail::value_counted::swap(x); }
     };
     
-    class stored_value : public detail::value_counted
+    struct stored_value : public detail::value_counted
     {
     public:
         stored_value();
@@ -269,7 +269,7 @@
     //
     // Used to incrementally build a valueeter tree.
 
-    class value_builder {
+    struct value_builder {
     public:
         value_builder();
         void swap(value_builder& b);
@@ -299,7 +299,7 @@
     // Value Error
     //
     
-    class value_error : public std::logic_error
+    struct value_error : public std::logic_error
     {
     public:
         explicit value_error(std::string const&);
@@ -310,9 +310,9 @@
     //
     // Convenience class for unpacking value values.
 
-    class value_consumer {
+    struct value_consumer {
     public:
-        class iterator
+        struct iterator
             : public boost::input_iterator_helper<iterator,
                 boost::iterator_value<value::iterator>::type,
                 boost::iterator_difference<value::iterator>::type,