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"
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?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">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
@@ -19,13 +19,13 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user