Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
1d2c7b6c
Commit
1d2c7b6c
authored
Sep 29, 2016
by
Derek Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MSVC build when HAVE_LONG_LONG is defined.
parent
b9bad65b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
type_traits.h
src/google/protobuf/stubs/type_traits.h
+1
-9
No files found.
src/google/protobuf/stubs/type_traits.h
View file @
1d2c7b6c
...
...
@@ -139,18 +139,10 @@ template<> struct is_integral<int> : true_type { };
template
<>
struct
is_integral
<
unsigned
int
>
:
true_type
{
};
template
<>
struct
is_integral
<
long
>
:
true_type
{
};
template
<>
struct
is_integral
<
unsigned
long
>
:
true_type
{
};
#if
def HAVE_LONG_LONG
#if
defined(HAVE_LONG_LONG) || defined(_MSC_VER)
template
<>
struct
is_integral
<
long
long
>
:
true_type
{
};
template
<>
struct
is_integral
<
unsigned
long
long
>
:
true_type
{
};
#endif
#if defined(_MSC_VER)
// With VC, __int8, __int16, and __int32 are synonymous with standard types
// with the same size, but __int64 has not equivalent (i.e., it's neither
// long, nor long long and should be treated differnetly).
// https://msdn.microsoft.com/en-us/library/29dh1w7z.aspx
template
<>
struct
is_integral
<
__int64
>
:
true_type
{
};
template
<>
struct
is_integral
<
unsigned
__int64
>
:
true_type
{};
#endif
template
<
class
T
>
struct
is_integral
<
const
T
>
:
is_integral
<
T
>
{
};
template
<
class
T
>
struct
is_integral
<
volatile
T
>
:
is_integral
<
T
>
{
};
template
<
class
T
>
struct
is_integral
<
const
volatile
T
>
:
is_integral
<
T
>
{
};
...
...
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