Download
Magazine
Develop
Account
Download
Magazine
Develop
Login
Forgot Account/Password
Create Account
Language
Help
Language
Help
×
Login
Login Name
Password
×
Forgot Account/Password
Category:
Software
People
PersonalForge
Magazine
Wiki
Search
OSDN
>
Find Software
>
Software Development
>
MiX
>
Ticket List/Search
>
Ticket #10326
MiX
Description
Project Summary
Developer Dashboard
Web Page
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
History
Downloads
List of Releases
Stats
Ticket
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Documents
Communication
Forums
List of Forums
なんでもあり (2)
Help (1)
Open Discussion (1)
Mailing Lists
list of ML
mix-users
News
Ticket #10326
Ticket List
Submit New Ticket
RSS
nodecontainer.h バグ報告
Open Date:
2007-04-24 17:31
Last Update:
2007-04-24 17:31
monitor
ON
OFF
Reporter:
(Anonymous)
Owner:
(None)
Type:
Bugs
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None
Details
Reply
Version 0.5.2
original source
---------------------------------------------
template <class Pred>
typename nodelist_type::iterator search(Pred
pred,int index){
int i = 0;
typename nodelist_type::iterator
it,first,last=getChildren().end();
for (first=getChildren().begin() ; it!=last ;
first=++it,++i )
{
it = std::find_if(first,last,pred);
if( i==index ) break;
}
return it;
}
---------------------------------------------
itの初期化が無いため、落ちていました。
modified source
---------------------------------------------
template <class Pred>
typename nodelist_type::iterator search(Pred
pred,int index){
int i = 0;
typename nodelist_type::iterator
it,first,last=getChildren().end();
first=getChildren().begin();
it = first;
for ( ; it!=last ; first=++it,++i )
{
it = std::find_if(first,last,pred);
if( i==index ) break;
}
return it;
}
---------------------------------------------
Ticket History (0/0 Histories)
Attachment File List (
0
)
Attachment File List
No attachments
Edit
Add Comment
You are not logged in.
I you are not logged in, your comment will be treated as an anonymous post. »
Login
Add Comment
Preview
Submit
original source
---------------------------------------------
template <class Pred>
typename nodelist_type::iterator search(Pred
pred,int index){
int i = 0;
typename nodelist_type::iterator
it,first,last=getChildren().end();
for (first=getChildren().begin() ; it!=last ;
first=++it,++i )
{
it = std::find_if(first,last,pred);
if( i==index ) break;
}
return it;
}
---------------------------------------------
itの初期化が無いため、落ちていました。
modified source
---------------------------------------------
template <class Pred>
typename nodelist_type::iterator search(Pred
pred,int index){
int i = 0;
typename nodelist_type::iterator
it,first,last=getChildren().end();
first=getChildren().begin();
it = first;
for ( ; it!=last ; first=++it,++i )
{
it = std::find_if(first,last,pred);
if( i==index ) break;
}
return it;
}
---------------------------------------------