Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
5.28k
stars
939
forks
source link
[MSVC][std:c++latest] Cinder failed to build due to error C2666: 'CRect::operator ==': overloaded functions have similar conversions #2302
Open
Zhaojun-Liu opened 1 year ago
Description: After the MSVC team implemented 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/cinder/Cinder/blob/master/src/AntTweakBar/TwMgr.h#L369 needs a 'const'. Could you please look this issue? Thanks.
F:\gitP\cinder\Cinder\src\AntTweakBar\TwMgr.cpp(2176,71): error C2666: 'CRect::operator ==': overloaded functions have similar conversions [F:\gitP\cinder\Cinder\build_amd64\cinder.vcxproj]
Note: this issue will be reproduced on next release version of VS(VS17.6 or later)
Repro steps:
Detailed log: build.log