-
Notifications
You must be signed in to change notification settings - Fork 263
Make compatible with GCC #1245
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
Make compatible with GCC #1245
Changes from all commits
a9f0f8d
87d2dd0
244df2e
e87b249
1406d1f
f323371
089ae3e
47222ab
d6b56d6
36bb18a
f3f838d
f90f754
1f4edae
2b37b0a
5a5fc09
8cdacaa
3ea3663
2ad00ef
bb78632
9c9627b
e7d0d09
0f0a3ef
0129567
24cd40f
ed9d296
e2cd4df
9645cf0
cc37b3f
9d4583f
75d5c6e
fb9d105
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -272,7 +272,6 @@ TEST_CASE("hstring,operator,std::wstring_view") | |
| REQUIRE(L"abc" == ws); | ||
|
|
||
| hs.clear(); | ||
| REQUIRE(L"abc" == ws); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what's the point of this test because this seems to be a use-after-free, and it crashes when run with Application Verifier enabled. So I removed it.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch. |
||
| ws = hs; | ||
| REQUIRE(ws.empty()); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we use
= defaultto force the compiler to generate this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC the issue is that
std::atomic<T>is unmovable (copy constructor is deleted).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that's too bad.