DGtal-team / DGtal

Digital Geometry Tools and Algorithm Library
https://dgtal.org
GNU Lesser General Public License v3.0
370 stars 115 forks source link

operator | of SetFunctions provokes compilation error on MS build #1110

Open kerautret opened 8 years ago

kerautret commented 8 years ago

(visible in testSetFunction)

C:\Qt\5.4\msvc2013_opengl\include\QtCore/qmetatype.h(907): error C2057: expression constante attendue C:\Qt\5.4\msvc2013_opengl\include\QtCore/qmetatype.h(917): note: voir la référence à l'instanciation de la classe modèle 'QtMetaTypePrivate::CapabilitiesImpl<QList,std::random_access_iterator_tag>' en cours de compilation C:\Qt\5.4\msvc2013_opengl\include\QtCore/qmetatype.h(988): note: voir la référence à l'instanciation de la classe modèle 'QtMetaTypePrivate::ContainerAPI' en cours de compilation with [ T=QVariantList ] C:\Qt\5.4\msvc2013_opengl\include\QtCore/qvariant.h(714): note: voir la référence à l'instanciation de la fonction modèle 'QtMetaTypePrivate::QSequentialIterableImpl::QSequentialIterableImpl(const T *)' en cours de compilation with [ T=QVariantList ]

dcoeurjo commented 8 years ago

weird..

JacquesOlivierLachaud commented 8 years ago

Is there any other information ? I am even surprised that I include Qt in testSetFunctions !!

kerautret commented 8 years ago

it comes from the qmetatype.h which belongs to the QTCore group, here is the qt part mentioned with the "constant expression expected":

capture d ecran 2016-01-15 a 11 50 47
JacquesOlivierLachaud commented 8 years ago

But why QT is included after SetFunctions ? And I remember putting operator| into namespace DGtal::functions.

kerautret commented 8 years ago

It comes from the common.h ... (due to DrawableWithViewer3D)