Bug report #9416

Problem compiling QGIS in visual studio

Added by Alvaro Huarte over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Build/Install
Affected QGIS version:2.0.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18011

Description

I can not build QGIS in visual studio when this commit is applied: e8205c98c938b60569c30d5c0bbec3acab1f441a

the errors come from std::swap<> calls....

void QgsSingleSymbolRendererV2::swap( QgsSingleSymbolRendererV2 & other )
{
  std::swap( mSymbol, other.mSymbol );
  std::swap( mRotation, other.mRotation );
  .......
}

am I missing something?, or there is an error when 'std::auto_ptr' was changed for 'QScopedPointer'

I get these errors...

2>  qgssinglesymbolrendererv2.cpp
2>c:\\Archivos de programa\\Microsoft Visual Studio 10.0\\VC\\include\\utility(102): error C2248: 'QScopedPointer<T>::QScopedPointer' : cannot access private member declared in class 'QScopedPointer<T>'
2>          with
2>          [
2>              T=QgsSymbolV2
2>          ]
2>          D:\\TFS_OSGeo\\SIT\\SIG_SDK\\OSGeo\\OSGeo4W\\include\\qt4\\QtCore/qscopedpointer.h(170) : see declaration of 'QScopedPointer<T>::QScopedPointer'
2>          with
2>          [
2>              T=QgsSymbolV2
2>          ]
2>          ..\\..\\..\\QGIS\\src\\core\\symbology-ng\\qgssinglesymbolrendererv2.cpp(59) : see reference to function template instantiation 'void std::swap<QScopedPointer<T>>(_Ty &,_Ty &)' being compiled
2>          with
2>          [
2>              T=QgsSymbolV2,
2>              _Ty=QScopedPointer<QgsSymbolV2>
2>          ]
2>c:\\Archivos de programa\\Microsoft Visual Studio 10.0\\VC\\include\\utility(103): error C2248: 'QScopedPointer<T>::operator =' : cannot access private member declared in class 'QScopedPointer<T>'
2>          with
2>          [
2>              T=QgsSymbolV2
2>          ]
2> ....................

Associated revisions

Revision a78a0035
Added by Jürgen Fischer over 6 years ago

fix windows build (fixes #9416)

History

#2 Updated by Jürgen Fischer over 6 years ago

  • Status changed from Open to Closed

#3 Updated by Alvaro Huarte over 6 years ago

Thanks Jürgen!

Also available in: Atom PDF