eclipse-score / eclipse-score/baselibs

inplace_vector is not trivially copyable

Open
#168 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
26
Forks
85
Avg merge
2d 13h
Merged PRs (30d)
47

Description

### Description

The folllowing code fails to compile:

```cpp
#include
#include

static_assert(std::is_trivially_copyable_v>);
```

The C++26 `inplace_vector` [should be trivially copyable, if T is](https://en.cppreference.com/cpp/container/inplace_vector). At least that is the impression I get, when looking at some special member functions (constructor, destructor, assignment operator).

Thus if the score type aims to be a drop-in replacement it needs to be trivially copyable as well.

### Analysis results

It looks like non trivial constructors, assignment operators and destructors are used.

### Solution

_No response_

### Error Occurrence Rate

Reproducible

### How to reproduce

_No response_

### Supporting Information

_No response_

### Classification

Minor

### First Affected Release

not released (main)

### Last Affected Release

not released (main)

### Expected Fixed Release

before release (main)

### Category

- [ ] Safety Relevant
- [ ] Security Relevant

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.