tidy some comments
authorTJ <hacker@iam.tj>
Sun, 12 Apr 2015 16:44:15 +0000 (17:44 +0100)
committerTJ <hacker@iam.tj>
Sun, 12 Apr 2015 16:44:15 +0000 (17:44 +0100)
GenericStorageContainerTemplateImpl.hpp

index 434a8f3..4bc09f9 100644 (file)
@@ -167,16 +167,16 @@ namespace tj
      */
     template <bool is_const_iterator = false>
     class iterator : public std::iterator< std::bidirectional_iterator_tag, StorageClass<T> >
-    /* XXX: Ensure the <iterator> header is included to avoid cryptic errors:
-     *
-     *     GenericStorageContainerTemplateImpl.hpp:168:42: error: expected template-name before ‘<’ token
-     *        class iterator : public std::iterator< std::bidirectional_iterator_tag, StorageClass<T> >
-     *                                             ^
-     *     GenericStorageContainerTemplateImpl.hpp:168:42: error: expected ‘{’ before ‘<’ token
-     *     GenericStorageContainerTemplateImpl.hpp:168:42: error: expected unqualified-id before ‘<’ token
-     */
-
     {
+      /* XXX: Ensure the <iterator> header is included to avoid cryptic errors:
+       *
+       *     GenericStorageContainerTemplateImpl.hpp:168:42: error: expected template-name before ‘<’ token
+       *        class iterator : public std::iterator< std::bidirectional_iterator_tag, StorageClass<T> >
+       *                                             ^
+       *     GenericStorageContainerTemplateImpl.hpp:168:42: error: expected ‘{’ before ‘<’ token
+       *     GenericStorageContainerTemplateImpl.hpp:168:42: error: expected unqualified-id before ‘<’ token
+       */
+
       /*
        * 1. typedef the container's type to the naming convention used by the STL iterators (makes readable code)
        * 2. Use Metaprogramming's std::conditional to decide whether to declare const or non-const iterator
@@ -258,10 +258,9 @@ namespace tj
 
     }; // end of Iterator
 
-    /* use these handy short-cuts in application code
-     */
-    typedef iterator<true> _const_iterator;
-    typedef iterator<false> _iterator;
+  // use these handy short-cuts in application code
+  typedef iterator<true> _const_iterator;
+  typedef iterator<false> _iterator;
 
   }; // end of GenericStorageContainerTemplateImpl