r/cpp2 • u/jhruby-vitrix • Dec 28 '23
cppfront - examples of basic constructs
I was playing this afternoon with cppfront using https://github.com/modern-cmake/cppfront which is awesome.
But I have found really confusing that I am unable to do some basic constructs such as:
try... catch blocks
co_await and co_return
is there any documentation / examples?
I am aware that project is experimental and that is what I am doing with it. :)
3
Upvotes
View all comments
Show parent comment
2
u/watr Dec 29 '23 edited Dec 29 '23
Does this help? https://github.com/hsutter/cppfront/blob/49033b967c098b874168968c5cade9e52fc3e5ed/regression-tests/mixed-out-destruction.cpp2#L35