Date: Sat, 26 Feb 2022 16:21:54 +0000
Paul,
I think the trick with Compiler explorer is to include the URL to the header file:
#include "https://github.com/matus-chochlik/mirror/tree/develop/include/mirror/all.hpp"
This might be the trick you need to get it to work. I found this example in a github issue for Quickbench: https://godbolt.org/z/WEbKWojz5
But the example include I gave above wouldn't compile. Not sure why.
Regards,
Jonathan
Sent with [ProtonMail](https://protonmail.com/) Secure Email.
------- 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
I think the trick with Compiler explorer is to include the URL to the header file:
#include "https://github.com/matus-chochlik/mirror/tree/develop/include/mirror/all.hpp"
This might be the trick you need to get it to work. I found this example in a github issue for Quickbench: https://godbolt.org/z/WEbKWojz5
But the example include I gave above wouldn't compile. Not sure why.
Regards,
Jonathan
Sent with [ProtonMail](https://protonmail.com/) Secure Email.
------- 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:21:58