Merge pull request #11 from jxd134/master
return value of difference_type in Iterator.h
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
#include "../Alloc.h"
|
#include "../Alloc.h"
|
||||||
|
|
||||||
namespace TinySTL{
|
namespace TinySTL{
|
||||||
|
|
||||||
char *alloc::start_free = 0;
|
char *alloc::start_free = 0;
|
||||||
char *alloc::end_free = 0;
|
char *alloc::end_free = 0;
|
||||||
size_t alloc::heap_size = 0;
|
size_t alloc::heap_size = 0;
|
||||||
|
|
||||||
alloc::obj *alloc::free_list[alloc::ENFreeLists::NFREELISTS] = {
|
alloc::obj *alloc::free_list[alloc::ENFreeLists::NFREELISTS] = {
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
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);
|
return static_cast<typename iterator_traits<Iterator>::value_type*>(0);
|
||||||
}
|
}
|
||||||
template<class Iterator>
|
template<class Iterator>
|
||||||
inline typename iterator_traits<Iterator>::difference_type
|
inline typename iterator_traits<Iterator>::difference_type*
|
||||||
difference_type(const Iterator& It){
|
difference_type(const Iterator& It){
|
||||||
return static_cast<typename iterator_traits<Iterator>::difference_type*>(0);
|
return static_cast<typename iterator_traits<Iterator>::difference_type*>(0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
@@ -19,13 +19,13 @@
|
|||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v120</PlatformToolset>
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<PlatformToolset>v120</PlatformToolset>
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user