Panagiotis Christopoulos Charitos 13 лет назад
Родитель
Сommit
63ffe1999c
3 измененных файлов с 10 добавлено и 4 удалено
  1. 4 0
      include/anki/util/NonCopyable.h
  2. 5 1
      include/anki/util/Object.h
  3. 1 3
      include/anki/util/Variant.h

+ 4 - 0
include/anki/util/NonCopyable.h

@@ -3,6 +3,9 @@
 
 namespace anki {
 
+/// @addtogroup util
+/// @{
+
 /// Makes a derived class non copyable
 struct NonCopyable
 {
@@ -15,6 +18,7 @@ struct NonCopyable
 	~NonCopyable()
 	{}
 };
+/// @}
 
 } // end namespace anki
 

+ 5 - 1
include/anki/util/Object.h

@@ -7,6 +7,9 @@
 
 namespace anki {
 
+/// @addtogroup util
+/// @{
+
 /// A hierarchical object
 template<typename T>
 class Object
@@ -102,7 +105,8 @@ private:
 	Value* parent = nullptr; ///< May be nullptr
 	Container childs;
 };
+/// @}
 
-} // end namespace
+} // end namespace anki
 
 #endif

+ 1 - 3
include/anki/util/Variant.h

@@ -289,9 +289,7 @@ public:
 	friend std::ostream& operator<<(std::ostream& s, const SelfType& x)
 	{
 		s << *x.ptr;
-		return s;	std::unique_ptr<int> ptr;
-
-	std::cout << *ptr << std::endl;
+		return s;
 	}
 
 private: