Issue 122853 - TR1's single linked list doesn't have a size() method
Summary: TR1's single linked list doesn't have a size() method
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 4.0.0
Hardware: All All
: P3 Normal (vote)
Target Milestone: 4.1.0
Assignee: hdu@apache.org
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 122766
  Show dependency tree
 
Reported: 2013-07-26 12:59 UTC by hdu@apache.org
Modified: 2014-04-01 12:45 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description hdu@apache.org 2013-07-26 12:59:52 UTC
C++11's single linked list ("forward_list") doesn't have a size() method like its stlport4 predecessor ("slist"). Emulating the method is not needed as all usages in AOO can be replaced by a simpler and cleaner check using its empty() method.
Comment 1 SVN Robot 2013-07-26 13:07:27 UTC
"hdu" committed SVN revision 1507304 into trunk:
#i122853# replace use of size() method for single linked lists
Comment 2 hdu@apache.org 2013-07-26 13:09:06 UTC
Fixed with the commit above.
Comment 3 SVN Robot 2013-07-26 13:40:29 UTC
"hdu" committed SVN revision 1507307 into trunk:
#i122853# prevent use of slist::size() for all platforms
Comment 4 SVN Robot 2013-11-21 08:11:47 UTC
"jsc" committed SVN revision 1544060 into trunk:
#122853# replace slist size>0 with not empty
Comment 5 hdu@apache.org 2014-04-01 12:45:00 UTC
Closing the resolved issue.