Skip to content

If we're building on C++17, use actual "if constexpr"#38154

Closed
smessmer wants to merge 1 commit intogh/smessmer/217/basefrom
gh/smessmer/217/head
Closed

If we're building on C++17, use actual "if constexpr"#38154
smessmer wants to merge 1 commit intogh/smessmer/217/basefrom
gh/smessmer/217/head

Conversation

@smessmer
Copy link
Copy Markdown
Contributor

@smessmer smessmer commented May 8, 2020

Stack from ghstack:

This should give better error messages and shorter stack traces on C++17 builds (e.g. fbcode)

Differential Revision: D21483327

This should give better error messages and shorter stack traces on C++17 builds (e.g. fbcode)

Differential Revision: [D21483327](https://our.internmc.facebook.com/intern/diff/D21483327/)

[ghstack-poisoned]
smessmer added a commit that referenced this pull request May 8, 2020
This should give better error messages and shorter stack traces on C++17 builds (e.g. fbcode)

Differential Revision: [D21483327](https://our.internmc.facebook.com/intern/diff/D21483327/)

ghstack-source-id: 103775564
Pull Request resolved: #38154
@smessmer smessmer requested review from bhosmer and ezyang May 8, 2020 21:12
@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented May 9, 2020

💊 CI failures summary and remediations

As of commit a649692 (more details on the Dr. CI page):


  • 1/1 failures introduced in this PR

1 job timed out:

  • pytorch_macos_10_13_py3_build

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

Copy link
Copy Markdown
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving because it's not worth litigating this, but you have no way in our current build system to test that this actually works, no?

@smessmer
Copy link
Copy Markdown
Contributor Author

I'm approving because it's not worth litigating this, but you have no way in our current build system to test that this actually works, no?

not in oss but fbcode is using this

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 77d8a44.

@facebook-github-bot facebook-github-bot deleted the gh/smessmer/217/head branch May 15, 2020 14:18
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#38154

This should give better error messages and shorter stack traces on C++17 builds (e.g. fbcode)
ghstack-source-id: 103775564

Test Plan: waitforsandcastle

Differential Revision: D21483327

fbshipit-source-id: 184d1f9c0543bf43dc9713fa97fcc5955e7be319
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants