util/IntrusiveList: constant_time_size is a template argument, not a variable

This commit is contained in:
Max Kellermann 2022-11-11 17:15:15 +01:00
parent 1ccfd1fb67
commit b4a64af15e
1 changed files with 2 additions and 5 deletions

View File

@ -1,8 +1,5 @@
/*
* Copyright 2022 Max Kellermann <max.kellermann@gmail.com>
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
* Copyright 2020-2022 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -560,6 +557,6 @@ public:
*/
void splice(iterator position, IntrusiveList &from) noexcept {
splice(position, from, from.begin(), from.end(),
from.constant_time_size ? from.size() : 1);
constant_time_size ? from.size() : 1);
}
};