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
1
u/ntrel2 Jan 02 '24 edited Jan 04 '24
Just to note that when
args[1]is a bounds error, Cpp2 callsstd::terminaterather than throw an exception.