[Uml-devel] KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser

Ralf Habacker Ralf.Habacker at freenet.de
Sun Nov 23 11:03:11 UTC 2008


SVN commit 887894 by habacker:

msvc implementation of libstdc++ does not have the _Identity template class

 M  +8 -0      preprocesslexer.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser/preprocesslexer.cpp #887893:887894
@@ -35,7 +35,15 @@
 
 #include "assignFunctor.hpp"
 
+#ifdef Q_CC_MSVC
 template <class _Tp>
+struct _Identity : public std::unary_function<_Tp,_Tp> {
+  _Tp& operator()(_Tp& __x) const { return __x; }
+  const _Tp& operator()(const _Tp& __x) const { return __x; }
+};
+#endif
+
+template <class _Tp>
 struct tilde : public std::unary_function<_Tp, _Tp> {
     _Tp operator()(_Tp& __x) const {
         return ~__x;




More information about the umbrello-devel mailing list