DiscordCoreAPI: [vcpkg] Compile error C2593
Hello, I’m a member of Microsoft VCPKG, when I built this port in an internal version of Visual Studio, it failed with following errors:
F:\vcpkg\buildtrees\discordcoreapi\src\8b54cf9-9e5ee11bfa\Source\FoundationEntities.cpp(42): error C2593: 'operator =' is ambiguous
F:\vcpkg\buildtrees\discordcoreapi\src\8b54cf9-9e5ee11bfa\Include\discordcoreapi/Etf.hpp(438): note: could be 'DiscordCoreInternal::EtfSerializer &DiscordCoreInternal::EtfSerializer::=<uint64_t>(_T0) noexcept'
with
[
_T0=uint64_t
]
And the same error with gcc/clang.
For us, this is by design. The code is no longer well-formed after P2113R0.
All compilers reject the code (like: ‘S& operator=(C auto&& data) noexcept;’ works):
@RealTimeChris Can we find a solution? 😃
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 29 (14 by maintainers)
Commits related to this issue
- DiscordCoreAPI v1.60 Release Hey everyone just a new release here, with the following changes being primary: -Fixed an issue with the SongAPI classes' stop method. -Updated the move assignment operat... — committed to RealTimeChris/DiscordCoreAPI by RealTimeChris a year ago
- DiscordCoreAPI v1.60 Release Hey everyone just a new release here, with the following changes being primary: -Fixed an issue with the SongAPI classes' stop method. -Updated the move assignment operat... — committed to RealTimeChris/DiscordCoreAPI by RealTimeChris a year ago
Pretty sure it’s been fixed in the latest (v1.60) release.
I believe I do - let me push it as the latest release.
How did it go?
Don’t worry, I’m testing it (version v1.6.0).
Pretty sure it’s been fixed. https://github.com/RealTimeChris/DiscordCoreAPI/blob/dev/Include/discordcoreapi/Etf.hpp#L235-L490
Sure let me check it out!