Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Create a custom constexpr map when g++12 will be released #5

Open
martin-olivier opened this issue Dec 13, 2021 · 0 comments
Open

Create a custom constexpr map when g++12 will be released #5

martin-olivier opened this issue Dec 13, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@martin-olivier
Copy link
Member

[FEATURES] Create a custom constexpr map when g++12 will be released

Description

g++12 will provide constexpr for both std::string and std::vector.
We will be able to create a custom constexpr map using constexpr std::vector

Is your feature request related to a problem ?

This feature will improve TheZap performance and will prevent program crash if the user is not able to catch a std::bad_alloc.
The user wouldn't be able to catch it since the variable is created globally and not in a function.

Describe the solution you'd like

A custom implementation of std::map named associative_array that will be constexpr

@martin-olivier martin-olivier added the enhancement New feature or request label Dec 13, 2021
@martin-olivier martin-olivier self-assigned this Dec 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant