[MSVC][std:c++latest] Boost\libs\utility run tests failed due to error C2666: 'comparible_UDT::operator ==': overloaded functions have similar conversions
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- cpp
- Domain
- compilers, testing-qa
Research direction
Start with libs/utility/test/call_traits_test.cpp, especially the comparible_UDT equality operator around line 204, and review the reported C2666 under MSVC /std:c++latest. Run the utility tests using the provided Boost and b2 reproduction steps; done means the test builds and passes without the overloaded-equality error.
Written by the indexing model from the issue text.
Description
Description:
After the MSVC team implented P2468R2 The Equality Operator You Are Looking For, we got a compiler error with /std:c++latest like below, the error is due to the equality operator here https://github.com/boostorg/utility/blob/3aa25c9dd789c89f08f92632898693d9997d8a70/test/call_traits_test.cpp#L204 is missing 'const'. Could you please look this issue? Thanks.
libs\utility\test\call_traits_test.cpp(131): error C2666: 'comparible_UDT::operator ==': overloaded functions have similar conversions
libs\utility\test\call_traits_test.cpp(204): note: could be 'bool comparible_UDT::operator ==(const comparible_UDT &)'
libs\utility\test\call_traits_test.cpp(204): note: or 'bool comparible_UDT::operator ==(const comparible_UDT &)' [synthesized expression 'y == x']
Note: this issue will be reproduced on next release version of VS (VS17.6 or later)
Repro steps:
- open VS2019 x64 tools command
- git clone https://github.com/boostorg/boost.git F:\gitP\boostorg\boost
- git -C "F:\gitP\boostorg\boost" fetch --recurse-submodules=no --force
- git -C "F:\gitP\boostorg\boost" reset --hard 0c4090b
- git -C "F:\gitP\boostorg\boost" submodule sync
- git -C "F:\gitP\boostorg\boost" submodule foreach git reset --hard
- git -C "F:\gitP\boostorg\boost" submodule foreach git clean -xdf
- git -C "F:\gitP\boostorg\boost" submodule update -f --init --recursive
- set CL= /std:c++latest
- cd F:\gitP\boostorg\boost
- .\bootstrap
- .\b2 headers variant=release --build-dir=F:\gitP\boostorg\boost\out\amd64rel address-model=64
- .\b2 variant=release --build-dir=F:\gitP\boostorg\boost\out\amd64rel address-model=64
- set CL=/D_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING /D_HAS_DEPRECATED_ADAPTOR_TYPEDEFS=1 /D_HAS_AUTO_PTR_ETC=1 /D_HAS_DEPRECATED_RAW_STORAGE_ITERATOR=1 /D_HAS_DEPRECATED_TEMPORARY_BUFFER=1 /D_HAS_DEPRECATED_NEGATORS=1 /Zc:enumTypes %CL%
- set related reference path (in my environment like below):
set OPENSSL_ROOT=F:\tools\OpenSSL\64
set path=F:\tools\OpenSSL\64\bin;%path%
set path=C:\Python\Python27;%path% - .\b2 -j16 variant=release --build-dir=F:\gitP\boostorg\boost\out\amd64rel libs\utility\test address-model=64 > utility_test.log
Detailed log:
utility_test.log
- Dominant language
- C++
- Stars
- 51
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/utility
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in boostorg/utility
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
infiniflow/infinity#3502 ·