Merged revision(s) 78115-78594 from trunk/libs/intrusive:

[SVN r78598]
This commit is contained in:
Ion Gaztañaga
2012-05-24 18:12:03 +00:00
parent 03a51534b2
commit 12c6c3a66a
55 changed files with 385 additions and 385 deletions
+2 -2
View File
@@ -38,14 +38,14 @@ entity::~entity()
//Function to insert a new "some_entity" in the global list
void insert_some_entity()
{ global_list.push_back (*new some_entity(/*...*/)); }
{ global_list.push_back (*new some_entity(/*...*/)); }
//Function to clear an entity from the intrusive global list
void clear_list ()
{
// entity's destructor removes itself from the global list implicitly
while (!global_list.empty())
delete &global_list.front();
delete &global_list.front();
}
int main()