cmacro icon indicating copy to clipboard operation
cmacro copied to clipboard

Is there a way to define a toplevel point in the source file?

Open tentaclius opened this issue 2 years ago • 1 comments

My problem is if I define lambda as shown in the example, the function definition goes to the top of the file and so it doesn't pick up types from included headers. So I was wondering if there a template to define this position in the file? Thanks!

tentaclius avatar Oct 09 '22 13:10 tentaclius

There isn't a way currently but it can be worked around by including the generated file inside another source file.

caffe3 avatar Feb 03 '24 18:02 caffe3