cppfront
cppfront copied to clipboard
A personal experimental C++ Syntax 2 -> Syntax 1 compiler
**Describe the bug** Cppfront crashes with an assertion on [this code](https://cpp2.godbolt.org/z/E6PG56ohe): ``` h: (s: std::string, inout m: std::map ) -> std::string = { do { } while false; for m...
**Describe the bug** It seems like the pointers creating a memory issues here. **To Reproduce** ``` main: () -> int = { y: * int; { x := unique.new(10); y...
This adds an overview for the cpp2 benefits. I really liked one of Herb's comment on Reddit, as it provided a very nice overview about the benefits of this project....
If I declare a struct, and then use it as the result of an inspect, cppfront generates code constructing the struct with no arguments -- and there's no way to...
Reopen PR #1286
I'm not sure if what I'm about to present is a bug or not, but without any workaround, it seems impossible to write recursive functions. When I use functions with...
UFCS has a huge problem with fallback semantics as it was [discussed in the wiki](https://github.com/hsutter/cppfront/wiki/Design-note:-UFCS). There you say: > Here are some of the major alternative semantics we could choose...
**Summary**: I propose introducing a feature in Cpp2 that allows users to express constraints on types themselves directly in the type definition. This could be done using the syntax `name:type:concept={...}`...
The problem: Software developers oftentimes use static class member functions to make the function available in the desired namespace but not actually using a static class member inside this function....
**Describe the bug** There is no way to use literals to initialize a std::unordered_map. The parentheses are not translated into braces and hence are treated as a pair of comma-separated...