mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Modified create_linked_list functions to not null terminal link pointers
This commit is contained in:
parent
260a3f4a48
commit
acc0b4bb89
@ -945,8 +945,7 @@ namespace etl
|
||||
{
|
||||
TLink* current = &first;
|
||||
((current->etl_next = &links, static_cast<TLink&>(links).etl_previous = current, current = &links), ...);
|
||||
current->etl_next = ETL_NULLPTR;
|
||||
|
||||
|
||||
return current;
|
||||
}
|
||||
|
||||
@ -959,12 +958,10 @@ namespace etl
|
||||
{
|
||||
TLink* current = first;
|
||||
((current->etl_next = links, static_cast<TLink*>(links)->etl_previous = current, current = links), ...);
|
||||
current->etl_next = ETL_NULLPTR;
|
||||
|
||||
return current;
|
||||
}
|
||||
#elif ETL_USING_CPP11
|
||||
|
||||
//***************************************************************************
|
||||
/// Create a linked list from a number of bidirectional_link nodes.
|
||||
//***************************************************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user