util/IntrusiveList: constant_time_size is a template argument, not a variable
This commit is contained in:
parent
1ccfd1fb67
commit
b4a64af15e
@ -1,8 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2022 Max Kellermann <max.kellermann@gmail.com>
|
* Copyright 2020-2022 Max Kellermann <max.kellermann@gmail.com>
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* author: Max Kellermann <mk@cm4all.com>
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@ -560,6 +557,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
void splice(iterator position, IntrusiveList &from) noexcept {
|
void splice(iterator position, IntrusiveList &from) noexcept {
|
||||||
splice(position, from, from.begin(), from.end(),
|
splice(position, from, from.begin(), from.end(),
|
||||||
from.constant_time_size ? from.size() : 1);
|
constant_time_size ? from.size() : 1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user