[Uml-devel] [Bug 110400] crash while importing /usr/local/qt4/src/gui/kernel/qwidget.h
Chris Burghart
burghart at ucar.edu
Fri Nov 4 01:00:12 UTC 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=110400
burghart ucar edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burghart ucar edu
------- Additional Comments From burghart ucar edu 2005-11-04 00:27 -------
This looks like the same bug I'm seeing when trying to import a header which contains a template specialization. Umbrello will crash importing this simple (and legal) C++ fragment (condensed from the Boost library header /usr/include/boost/shared_ptr.hpp):
-------------------------------------------------
template<class T> struct shared_ptr_traits
{
typedef T & reference;
};
template<> struct shared_ptr_traits<void>
{
typedef void reference;
};
-------------------------------------------------
Umbrello's class parser just doesn't like "template<>", which opens a parameterless template specialization. See Stroustrup's "The C++ Programming Language", 3rd edition, section 13.5 for details on template specialization.
More information about the umbrello-devel
mailing list