<xstring>: basic_string::_Is_elem_cptr should be a variable template#2980
Conversation
|
You can see how existing variable templates are defined, e.g. : Lines 189 to 190 in b7e0365 But since After making |
i think i fixed it in daddfb2 |
|
Great, and further improvement can be done.
|
<xstring>: basic_string::_Is_elem_cptr should be a variable template
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
Unfortunately, while this change is correct, it triggers a (Noticed only when mirroring to the MSVC-internal repo, as we haven't gotten around to porting the |
There's no solution to this compiler error? |
According to the docs:
It was deprecated long time ago, so why even bother? 🥱 |
Urgh, Now it remember that I had that change in the |
Unfortunately, there isn't - we aren't aware of any workarounds, and the compiler team hasn't found a way to fix this longstanding issue (which involves name mangling, and hence binary compatibility). 😿 While we can't merge this change, this code could instead be commented as to why we aren't using a |
If I get you right, you want me to undo all of my changes, and add the comment you mentioned? |
Yep, that's correct. |
Done in YairBorn@60ae0ff |
Done in YairBorn@60ae0ff, but o don't know why the tests failed... |
Co-authored-by: Igor Zhukov <[email protected]>
Done. all tests passed! 😸 |
I didn't remember, but I do recall thinking "Why haven't we done this before?" when filing the issue. Hopefully the comment will prevent us from wasting more people's time doing this again in the future. |
|
I'm mirroring this to the MSVC-internal repo (again) - please notify me if any further changes are pushed. |
|
Thanks for working on this change - twice - and documenting why the STL behaves like this. Also, congratulations on your first microsoft/STL commit! 🎉 😻 🚀 This change will ship in VS 2022 17.4 Preview 3. |
…iable template (microsoft#2980) Co-authored-by: Igor Zhukov <[email protected]>
fixes #2898