Fixing builds on Apple, with xCode 12.3 and set(CMAKE_CXX_STANDARD 17). #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Specifically, this is the error message:
/Users/mh/TransformersTCG_QT/external/src/THIRDPARTY_REFLCPP/refl.hpp:4291:67: error: reference to 'unique_ptr' is ambiguous
void operator()(std::basic_ostream& os, const std::unique_ptr<T, D>& t) const
^
In file included from /Users/mh/TransformersTCG_QT/sources/widgets/mainwindow.cpp:1:
In file included from /Users/mh/TransformersTCG_QT/sources/widgets/mainwindow.h:4:
In file included from /Users/mh/Qt6/6.0.0/clang_64/lib/QtWidgets.framework/Headers/QMainWindow:1:
In file included from /Users/mh/Qt6/6.0.0/clang_64/lib/QtWidgets.framework/Headers/qmainwindow.h:43:
In file included from /Users/mh/Qt6/6.0.0/clang_64/lib/QtWidgets.framework/Headers/qtwidgetsglobal.h:43:
In file included from /Users/mh/Qt6/6.0.0/clang_64/lib/QtGui.framework/Headers/qtguiglobal.h:43:
In file included from /Users/mh/Qt6/6.0.0/clang_64/lib/QtCore.framework/Headers/qglobal.h:126:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:643:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2426:28: note: candidate found by name
lookup is 'std::__1::unique_ptr'
class _LIBCPP_TEMPLATE_VIS unique_ptr {