Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove lambda expression from grpc C++ library and make a fake nullptr #1135

Merged
merged 14 commits into from
Mar 26, 2015
Merged

Remove lambda expression from grpc C++ library and make a fake nullptr #1135

merged 14 commits into from
Mar 26, 2015

Conversation

vjpai
Copy link
Member

@vjpai vjpai commented Mar 25, 2015

To support older compilers (specifically gcc 4.4-4.5), we need to eliminate lambda expressions and nullptr.

@nicolasnoble
Copy link
Member

Will wait from travis, but basically LGTM. I wonder if there isn't a better way to detect the presence of nullptr tho...

@vjpai
Copy link
Member Author

vjpai commented Mar 25, 2015

I think that the best way to detect nullptr would be to actually have a
test run at configure time to see if the nullptr inherently exists and has
normal behavior.

On Wed, Mar 25, 2015 at 3:16 PM Nicolas Noble notifications@github.com
wrote:

Will wait from travis, but basically LGTM. I wonder if there isn't a
better way to detect the presence of nullptr tho...


Reply to this email directly or view it on GitHub
#1135 (comment).

@yang-g
Copy link
Member

yang-g commented Mar 25, 2015

Is it possible to add a test to build with some legacy compiler?

On Wed, Mar 25, 2015 at 3:33 PM, Vijay Pai notifications@github.com wrote:

I think that the best way to detect nullptr would be to actually have a
test run at configure time to see if the nullptr inherently exists and has
normal behavior.

On Wed, Mar 25, 2015 at 3:16 PM Nicolas Noble notifications@github.com
wrote:

Will wait from travis, but basically LGTM. I wonder if there isn't a
better way to detect the presence of nullptr tho...


Reply to this email directly or view it on GitHub
#1135 (comment).


Reply to this email directly or view it on GitHub
#1135 (comment).

@vjpai
Copy link
Member Author

vjpai commented Mar 25, 2015

That would be great; maybe there is a way to do it in Travis? I'm using an outside account that has an old compiler on it for now.

@nicolasnoble
Copy link
Member

I'm trying something - travis has that ability, but we can't compile and run the tests, since they're still containing things gcc-4.4 wouldn't like.

@vjpai
Copy link
Member Author

vjpai commented Mar 25, 2015

That's correct, we can only run a limited selection of the C++ tests under
4.4

On Wed, Mar 25, 2015 at 4:27 PM Nicolas Noble notifications@github.com
wrote:

I'm trying something - travis has that ability, but we can't compile and
run the tests, since they're still containing things gcc-4.4 wouldn't like.


Reply to this email directly or view it on GitHub
#1135 (comment).

@nicolasnoble
Copy link
Member

Check vjpai#1 - I've done a pull request on top of that pull request :-)

Adding a simple 'buildonly' test.
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@vjpai
Copy link
Member Author

vjpai commented Mar 26, 2015

I confirm that all your commits are belong to me

On Wed, Mar 25, 2015 at 5:44 PM googlebot notifications@github.com wrote:

We found a Contributor License Agreement for you (the sender of this pull
request) and all commit authors, but as best as we can tell these commits
were authored by someone else. If that's the case, please add them to this
pull request and have them confirm that they're okay with these commits
being contributed to Google. If we're mistaken and you did author these
commits, just reply here to confirm.


Reply to this email directly or view it on GitHub
#1135 (comment).

@vjpai vjpai added cla: yes and removed cla: no labels Mar 26, 2015
@nicolasnoble
Copy link
Member

Yeah, yeah, I consent :-)

nicolasnoble added a commit that referenced this pull request Mar 26, 2015
Remove lambda expression from grpc C++ library and make a fake nullptr
@nicolasnoble nicolasnoble merged commit a8891c0 into grpc:master Mar 26, 2015
@vjpai vjpai deleted the fix_gcc_4_4 branch March 26, 2015 16:41
@vjpai
Copy link
Member Author

vjpai commented Mar 26, 2015

FYI, clang has a test to check if nullptr is supported using __has_features . For gcc, we can test based on the version # . So, I should add a test in for the clang case also.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants