Summary: | compile error in kdebindings when templates expressions have ">>" | ||
---|---|---|---|
Product: | [Unmaintained] bindings | Reporter: | Michael Pyne <mpyne> |
Component: | general | Assignee: | kde-bindings |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Michael Pyne
2005-05-08 10:20:49 UTC
On Sunday 08 May 2005 10:20, Michael Pyne wrote: [bugs.kde.org quoted mail] I would have said this was a compiler bug. But on the other hand there is even a special error message about '>>' needing to be '> >' within a nested template argument. Yuck, how arbitrary! So I'll fix the bug by adding a suitable space for types ending in '>>'. I haven't switched to subversion yet, so it might be a day or two. -- Richard It's neither a bug, nor arbitrary. Under the longest-match rule, >> is a single token -- the right-shift operator Yes, it's even in the C++ std AFAIK. It's been a warning since I've used g++, but I guess g++ 3.4 upgraded it to an error. SVN commit 411417 by rdale: * Fixes bug reported by Michael Payne where the code for a nested template return type was being generated incorrectly. The type 'QValueList<QPair<QString, QChar> >' must have a space between the closing angle brackets. CCBUGS: 105277 M +1 -0 trunk/KDE/kdebindings/kalyptus/kalyptusDataDict.pm --- trunk/KDE/kdebindings/kalyptus/kalyptusDataDict.pm #411416:411417 @@ -2950,6 +2950,7 @@ } # normalize $argType = $before."<".join( ", ", @args).">".$after; + $argType =~ s/>>/> >/g; # Nested template types must have a space } # Parse 'const' in front of it, and '*' or '&' after it On Monday 09 May 2005 10:45, Richard Dale wrote:
> * Fixes bug reported by Michael Payne where the code for a nested
> template return type was being generated incorrectly.
Oops, sorry that should be Michael Pyne of course
Fixed long ago. |