cppfront icon indicating copy to clipboard operation
cppfront copied to clipboard

A personal experimental C++ Syntax 2 -> Syntax 1 compiler

Results 268 cppfront issues
Sort by recently updated
recently updated
newest added
trafficstars

**Describe the bug** The fact that initializers of unnamed-declarations are statements makes it possible to write code whose C++ image does not compile. ``` unnamed-declaration: : id-expression-opt = statement ```...

bug

More DRY and IMO makes the intent (i.e., plain `new` is a synonym of `unique.new`) clearer.

Small fixes in the declarations of the `cpp2_new` functions: * Take the argument packs by forwarding reference so that the arguments are actually forwarded * Remove the `... Args` template...

The current implementation is not handling sidecasts. The code: ```cpp struct B1 { virtual ~B1() = default; }; struct B2 { virtual ~B2() = default; }; struct D : B1,...

I'm not sure why we need that colon after variables and function.

suggestion

Hay I'm I love the new syntax for c++2 but how would we handle cross platform without the pre-processor. For example #if WIN32 > use this, and #if LINUX >...

Would be nice to write a template function like in other dynamic languages. For example instead of: add(a : _, b : _ ) -> _ is simpler add(a, b)...

suggestion

Since we have `std::format` as part of STL now since C++20, I would expect people to be implementing specializations for `std::formatter` in Cpp1. As such, in my opinion it would...

suggestion

While in C++ syntax 1 constness is preserved when forwarding an argument to a function, in C++ syntax 2 the constness seems to be removed. **Syntax 1** ``` void f(auto&&...

bug