Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenFlipper-Staging
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
OpenFlipper-Staging
Commits
d0f671b0
Commit
d0f671b0
authored
Jul 13, 2016
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unordered map for VS2015
parent
c24d31bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
24 deletions
+31
-24
Plugin-PoissonReconstruction/PoissonReconstruction/Hash.h
Plugin-PoissonReconstruction/PoissonReconstruction/Hash.h
+31
-24
No files found.
Plugin-PoissonReconstruction/PoissonReconstruction/Hash.h
View file @
d0f671b0
#ifndef HASH_INCLUDED
#define HASH_INCLUDED
#ifdef WIN32
#include <hash_map>
using
stdext
::
hash_map
;
#if _MSC_VER >= 1900
#include <unordered_map>
#define hash_map std::unordered_map
#else
#include <hash_map>
using
stdext
::
hash_map
;
#endif
#else // !WIN32
#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)>= 40300 //gcc >= 4.3
#include <tr1/unordered_map>
#define hash_map std::tr1::unordered_map
#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)>= 40300 //gcc >= 4.3
#include <tr1/unordered_map>
#define hash_map std::tr1::unordered_map
#else //GCC_VERSION < 40300
#include <ext/hash_map>
using
namespace
__gnu_cxx
;
#else //GCC_VERSION < 40300
#include <ext/hash_map>
using
namespace
__gnu_cxx
;
namespace
__gnu_cxx
{
template
<
>
struct
hash
<
long
long
>
{
size_t
operator
()(
long
long
__x
)
const
{
return
__x
;
}
};
template
<
>
struct
hash
<
const
long
long
>
{
size_t
operator
()(
const
long
long
__x
)
const
{
return
__x
;
}
};
namespace
__gnu_cxx
{
template
<
>
struct
hash
<
long
long
>
{
size_t
operator
()(
long
long
__x
)
const
{
return
__x
;
}
};
template
<
>
struct
hash
<
const
long
long
>
{
size_t
operator
()(
const
long
long
__x
)
const
{
return
__x
;
}
};
template
<
>
struct
hash
<
unsigned
long
long
>
{
size_t
operator
()(
unsigned
long
long
__x
)
const
{
return
__x
;
}
};
template
<
>
struct
hash
<
const
unsigned
long
long
>
{
size_t
operator
()(
const
unsigned
long
long
__x
)
const
{
return
__x
;
}
};
}
#endif // gcc >= 4.3
template
<
>
struct
hash
<
unsigned
long
long
>
{
size_t
operator
()(
unsigned
long
long
__x
)
const
{
return
__x
;
}
};
template
<
>
struct
hash
<
const
unsigned
long
long
>
{
size_t
operator
()(
const
unsigned
long
long
__x
)
const
{
return
__x
;
}
};
}
#endif // gcc >= 4.3
#endif // WIN32
#endif // HASH_INCLUDED
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment