Skip to content

Finalized functional map#26

Open
jkalias wants to merge 12 commits intomainfrom
functional_map
Open

Finalized functional map#26
jkalias wants to merge 12 commits intomainfrom
functional_map

Conversation

@jkalias
Copy link
Copy Markdown
Owner

@jkalias jkalias commented Apr 19, 2026

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 223b54c064

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread include/set.h
Comment on lines +53 to +54
template <class TKey, class TCompare = std::less<TKey>>
class set
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Remove duplicate nested set class declaration

include/set.h now declares template<class TKey...> class set twice in the same scope without closing the first one, so the parser enters an invalid state and any translation unit that includes this header fails to compile (you can see follow-on errors where standard headers appear under fcpp::std). This blocks all builds that include set.h, not just specific inputs.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93bc7191b3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread include/optional.h
Comment on lines +46 to +49
~optional()
{
reset();
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore deep-copy semantics in C++11 optional

In the non-C++17 fcpp::optional implementation, this class still owns heap memory (_value) and deletes it in the destructor, but this change removed the custom copy constructor and copy-assignment operator. That means the compiler now generates shallow-copy operations, so copying/assigning one optional to another makes both objects point to the same allocation and leads to double-delete/use-after-free when either instance is destroyed or reassigned. This affects any C++11/C++14 build path that copies optional_t<T> values.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant