Paul,
There's a couple of gotchas:
- find the file you want to include in github and click on the raw button. That will give you the raw URL which can be included.
2. You can't include any files that have inner includes belonging to the github project.
Here's an example, which fails because of 2: https://godbolt.org/z/h8G53xv63
I'll reach out to Matt Godbolt, as I'm sure there's a solution to this.Regards,Jonathan------- Original Message -------
On Saturday, February 26th, 2022 at 16:01, Paul Keir via SG7 <sg7@lists.isocpp.org> wrote:
Hi,I tried compiling mirror/hello_world.cpp via the two links to compiler-explorer, but both fail with: fatal error: 'mirror/primitives.hpp' file not found. I see the parameters "-freflection-ext -std=c++2b" are in place there. Does anyone know if anything else can get it to work?Thanks,PaulOn Wed, 23 Feb 2022 at 17:48, Matus Chochlik via SG7 <sg7@lists.isocpp.org> wrote:--P.S. I've attached the slides for another talk that goes through the use-cases (I'd maybe like to torture some other conference audiences with that, so please do not share the attached PDF outside of WG21. Thank you! :) )Hi SG7,As we've discussed I'm sending the links to:- the meeting C++ talk (the audio is messy for the first minute and half, if gets better afterwards, you can skip to 1:30 nothing of value will be lost)
https://www.youtube.com/watch?v=BP0gsVy502w-The slides from today (again):
https://matus-chochlik.github.io/mirror/latex/value_vs_type_based.pdf- The reflection "library" is implemented here:
https://github.com/matus-chochlik/mirror/tree/develop/include/mirror- Examples and use-cases:
https://github.com/matus-chochlik/mirror/tree/develop/example/mirror- Compiler-explorer sandbox (the implementation is done by me (far from a compiler-guru/sensei) so it is horribly un-optimized):
https://compiler-explorer.com/z/9931EW6xb
https://compiler-explorer.com/z/W9csaWPfq- The clang fork (the goal of which was to implement the TS) is here:
https://github.com/matus-chochlik/llvm-projectHTH,Feedback on any of these things is very welcome.--Matus
SG7 mailing list
SG7@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/sg7