Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
11f64fb3
Commit
11f64fb3
authored
Mar 25, 2015
by
vjpai
Browse files
Options
Downloads
Patches
Plain Diff
Make a fake version of nullptr to satisfy old compilers
parent
e98b1cc3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/grpc++/config.h
+20
-0
20 additions, 0 deletions
include/grpc++/config.h
with
20 additions
and
0 deletions
include/grpc++/config.h
+
20
−
0
View file @
11f64fb3
...
@@ -65,6 +65,26 @@
...
@@ -65,6 +65,26 @@
::google::protobuf::io::ZeroCopyInputStream
::google::protobuf::io::ZeroCopyInputStream
#endif
#endif
#ifdef __GNUC__
#if (__GNUC__ * 100 + __GNUC_MINOR__ < 406)
#define GRPC_NO_NULLPTR
#endif
#endif
#ifdef GRPC_NO_NULLPTR
#include
<memory>
const
class
{
public:
template
<
class
T
>
operator
T
*
()
const
{
return
static_cast
<
T
*>
(
0
);}
template
<
class
T
>
operator
std
::
unique_ptr
<
T
>
()
const
{
return
std
::
unique_ptr
<
T
>
(
static_cast
<
T
*>
(
0
));
}
operator
bool
()
const
{
return
false
;}
private
:
void
operator
&
()
const
=
delete
;
}
nullptr
=
{};
#endif
namespace
grpc
{
namespace
grpc
{
typedef
GRPC_CUSTOM_STRING
string
;
typedef
GRPC_CUSTOM_STRING
string
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment