Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Compiling with Qt 5.4 #27

Open
antis81 opened this issue Dec 12, 2014 · 2 comments
Open

Compiling with Qt 5.4 #27

antis81 opened this issue Dec 12, 2014 · 2 comments

Comments

@antis81
Copy link
Member

antis81 commented Dec 12, 2014

I get the following compile error with Qt 5.4:

qshareddata.h:166:11: error: cannot initialize a member subobject of type 'BlueSky::Internal::XmlStateRoot *' with an rvalue of type 'BlueSky::Internal::XmlState *'
        : d(o.data())
          ^ ~~~~~~~~

Today I installed Qt 5.4 and directly stumbled upon this neat little macro: QT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST.

Read about it in the [Qt documentation]: http://doc-snapshot.qt-project.org/qt5-5.4/qexplicitlyshareddatapointer.html

Any clue how to resolve it?

@scunz
Copy link
Member

scunz commented Dec 13, 2014

Insert explicit casts where they are required :)

@antis81
Copy link
Member Author

antis81 commented Dec 13, 2014

Thanks! Should be fixed by 8711739. Could you confirm please, that this is the right thing?

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

No branches or pull requests

2 participants