mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 17:06:05 +08:00
Fixed bugs in pop_front and insert_after.
This commit is contained in:
parent
55179454f2
commit
74c8bf0e20
@ -426,7 +426,7 @@ namespace etl
|
||||
void pop_front()
|
||||
{
|
||||
#if defined(ETL_CHECK_PUSH_POP)
|
||||
ETL_ASSERT(!full(), ETL_ERROR(forward_list_empty));
|
||||
ETL_ASSERT(!empty(), ETL_ERROR(forward_list_empty));
|
||||
#endif
|
||||
remove_node_after(start_node);
|
||||
}
|
||||
@ -500,7 +500,7 @@ namespace etl
|
||||
{
|
||||
// Set up the next free node.
|
||||
Data_Node& data_node = allocate_data_node(value);
|
||||
insert_node(*position.p_node, data_node);
|
||||
insert_node_after(*position.p_node, data_node);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user