Date: Sat, 26 Feb 2022 16:34:11 +0000
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_at_[hidden]> 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,
> Paul
>
> On Wed, 23 Feb 2022 at 17:48, Matus Chochlik via SG7 <sg7_at_[hidden]> wrote:
>
>> 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 that talk:
>> https://matus-chochlik.github.io/mirror/latex/meeting_cpp.pdf
>>
>> -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
>>
>> - Doxygen docs (W.I.P.):
>> https://matus-chochlik.github.io/mirror/doxygen/
>>
>> - 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-project
>>
>> HTH,
>> Feedback on any of these things is very welcome.
>>
>> --Matus
>>
>> 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! :) )
>> --
>> SG7 mailing list
>> SG7_at_[hidden]
>> https://lists.isocpp.org/mailman/listinfo.cgi/sg7
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_at_[hidden]> 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,
> Paul
>
> On Wed, 23 Feb 2022 at 17:48, Matus Chochlik via SG7 <sg7_at_[hidden]> wrote:
>
>> 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 that talk:
>> https://matus-chochlik.github.io/mirror/latex/meeting_cpp.pdf
>>
>> -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
>>
>> - Doxygen docs (W.I.P.):
>> https://matus-chochlik.github.io/mirror/doxygen/
>>
>> - 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-project
>>
>> HTH,
>> Feedback on any of these things is very welcome.
>>
>> --Matus
>>
>> 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! :) )
>> --
>> SG7 mailing list
>> SG7_at_[hidden]
>> https://lists.isocpp.org/mailman/listinfo.cgi/sg7
Received on 2022-02-26 16:34:15