提交 1783d7df 编写于 作者: J jxd134

the return value of difference_type function in iterator.h is difference_type*

上级 bfbcd808
#include "../Alloc.h"
namespace TinySTL{
char *alloc::start_free = 0;
char *alloc::end_free = 0;
size_t alloc::heap_size = 0;
alloc::obj *alloc::free_list[alloc::ENFreeLists::NFREELISTS] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
......
......@@ -101,7 +101,7 @@ namespace TinySTL{
return static_cast<typename iterator_traits<Iterator>::value_type*>(0);
}
template<class Iterator>
inline typename iterator_traits<Iterator>::difference_type
inline typename iterator_traits<Iterator>::difference_type*
difference_type(const Iterator& It){
return static_cast<typename iterator_traits<Iterator>::difference_type*>(0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册