diff --git a/inc/hgl/util/sort/Sort.h b/inc/hgl/util/sort/Sort.h index a2d7e29..099c5e8 100644 --- a/inc/hgl/util/sort/Sort.h +++ b/inc/hgl/util/sort/Sort.h @@ -2,6 +2,8 @@ #define HGL_ALGORITHM_SORT_INCLUDE #include +#include +#include #include template class SortBase @@ -68,8 +70,6 @@ public: virtual bool sort()=0; //排序 };//struct SortBase -namespace hgl -{ //堆排序 template class HeapSort:public SortBase { @@ -141,7 +141,7 @@ namespace hgl } template - bool Sort(List &list,Comparator *comp=Comparator()) + bool Sort(hgl::List &list,Comparator *comp=Comparator()) { return Sort(list.GetData(), list.GetCount(), @@ -169,5 +169,4 @@ namespace hgl hgl::Sort(cell_list,BAG_SLOT_COUNT,&comp_baginfo); } */ -}//namespace hgl #endif//HGL_ALGORITHM_SORT_INCLUDE