dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #07696
[Bug 1163705] Re: ResultIterator.h defines functions that return const values
** Changed in: unity/6.0
Status: New => Won't Fix
** Changed in: unity/7.0
Status: New => Won't Fix
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1163705
Title:
ResultIterator.h defines functions that return const values
Status in Unity:
Fix Released
Status in Unity 6.0 series:
Won't Fix
Status in Unity 7.0 series:
Won't Fix
Status in Unity phablet-mods series:
Fix Committed
Status in Unity trunk series:
Fix Released
Status in “unity” package in Ubuntu:
Fix Released
Bug description:
In UnityCore/ResultIterator.h, we have things such as:
friend inline bool const operator<(const ResultIterator& lhs, const
ResultIterator& rhs)
and
bool const IsLast();
Declaring a function to return a const value is meaningless, and the
compiler ignores the const. Moreover, with -Wall -Wextra, gcc emits a
warning about the ignored const and, with -Werror, produces an error.
The const return values need to be non-const.
To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1163705/+subscriptions