-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
[C++20][MSVC] test_houghcircles.cpp(59,27): error C2666: 'cv::format': 2 overloads have similar conversions #19941
Description
Hi all,
The MSVC team adds an implementation of with microsoft/STL#1821, and the format are ambiguous when building OpneCV on MSVC, can you look at this? Thanks. This issue was found under /std:c++latest mode.
repro steps:
- open VS2019 x64 tools command
- git clone https://github.com/opencv/opencv F:\gitP\opencv\opencv
- git clone https://github.com/opencv/opencv_extra :\gitP\opencv\opencv_extra
- mkdir F:\gitP\opencv\opencv\build_amd64
- cd F:\gitP\opencv\opencv\build_amd64
- set CL=/D_HAS_AUTO_PTR_ETC=1 /D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING /D_HAS_TR1_NAMESPACE=1 /wd5033 /D_HAS_DEPRECATED_RESULT_OF=1 /D_SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING -std:c++latest
- cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DWITH_IPP=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_PERF_TESTS=ON -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON -DWITH_OPENCL=OFF -DBUILD_DOCS=OFF -DWITH_CUDA=OFF ..
- msbuild /m /p:Platform=x64 /p:Configuration=Release OpenCV.sln /t:Rebuild /p:BuildInParallel=true
Build log: build.log
Error info(Please check the complete error message in the log):
F:\gitP\opencv\opencv\samples\cpp\select3dobj.cpp(493,68): error C2666: 'cv::format': 2 overloads have similar conversions
F:\gitP\opencv\opencv\samples\cpp\tutorial_code\calib3d\camera_calibration\camera_calibration.cpp(405,83): error C2666: 'cv::format': 2 overloads have similar conversions
F:\gitP\opencv\opencv\samples\cpp\tutorial_code\calib3d\camera_calibration\camera_calibration.cpp(407,76): error C2666: 'cv::format': 2 overloads have similar conversions
F:\gitP\opencv\opencv\samples\cpp\tutorial_code\calib3d\real_time_pose_estimation\src\main_detection.cpp(364,103): error C2666: 'cv::format': 2 overloads have similar conversions