Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing builds on Apple, with xCode 12.3 and set(CMAKE_CXX_STANDARD 17). #43

Merged
merged 1 commit into from Mar 3, 2021

Conversation

michaelahughes
Copy link
Contributor

Without these changes, the Apple specific use of inline namespaces to wrap newer, 'experimental' C++ stdlib features cause compile errors with the forward declares of std::unique_ptr in refl.hpp.

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 {

    Without these changes, the Apple specific use of inline namespaces to wrap newer, 'experimental' C++ stdlib features cause compile errors with the forward declares of std::unique_ptr in refl.hpp.

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<CharT>& 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 {
@veselink1 veselink1 merged commit f192b08 into veselink1:master Mar 3, 2021
@veselink1
Copy link
Owner

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants