boostorg / boostorg/intrusive

splice() should take template instead of slist&

Open
#101 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
66
Forks
74
Avg merge
5h 22m
Merged PRs (30d)
1

Description

I have something like follows:

```cpp
class Parent : public slist_base_hook<>
{
// virtual destructor, etc
};

class Child : public Parent
{};

slist storage;
slist temporaries;
```

I need to move all elements from `temporaries` to `storage` at the end of a function. I've tried to use `splice()`, but it doesn't work because it expects a `slist` of the same type as `*this`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.