Skip to content

Avoid reopening namespace std#54

Merged
steve-downey merged 1 commit intobemanproject:mainfrom
frederick-vs-ja:dont-reopen-namespace
Aug 29, 2024
Merged

Avoid reopening namespace std#54
steve-downey merged 1 commit intobemanproject:mainfrom
frederick-vs-ja:dont-reopen-namespace

Conversation

@frederick-vs-ja
Copy link
Contributor

Following the suggestion in Don’t reopen namespace std.

The change also works around a bug of MSVC (reduced and reported on DevCom).

Godbolt links:

Drive-by: Remove emoji 🔗 from the synopsis comments, which seems to be copied from https://eel.is/c++draft/optional.syn.

Copy link
Member

@neatudarius neatudarius left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Indeed, it does not compile with MSVC. I isolated a minimal code here https://godbolt.org/z/zvq5Mf4eW.

CC: @steve-downey

@steve-downey
Copy link
Member

steve-downey commented Aug 27, 2024

It looks good to me, too.
In a different PR I delete the whole quoted synopsis, as it's out of date, and becomes redundant as the new code matches, but cleaning the stray paperclip is good now.

@neatudarius
Copy link
Member

@frederick-vs-ja , please proceed with the PR merge. I would also like to check if you have permissions this way.

@frederick-vs-ja
Copy link
Contributor Author

@frederick-vs-ja , please proceed with the PR merge. I would also like to check if you have permissions this way.

I don't have write permission currently. Would you like to merge this?

@steve-downey steve-downey merged commit 158b8c6 into bemanproject:main Aug 29, 2024
@frederick-vs-ja frederick-vs-ja deleted the dont-reopen-namespace branch August 29, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants