-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snitch doesn't compile #129
Comments
I think I nailed it down to this line, specifically the |
Thanks for reporting this, and indeed that was my suspicion as well. A cast in the macro should fix it. Feel free to open a PR, otherwise I will do it tomorrow or this weekend. NB there are a few places where this will be needed |
A neater alternative would be to use |
This was probably more or less the exact place for which |
a7d9e46 should fix the problem, if you get a chance to test it. I'm refraining from using |
So many things will get easier with reflections :<. I'll test tomorrow,
thanks.
…On Sat, Sep 30, 2023, 11:43 Corentin Schreiber ***@***.***> wrote:
a7d9e46
<a7d9e46>
should fix the problem, if you get a chance to test it.
I'm refraining from using std::source_location for now. Its main
advantage is that it doesn't require macros, but since *snitch* checks
are macro-based, this isn't something we really benefit from. It would just
create overhead, since eventually we want to store a {std::string_view,
std::size_t}, that it would need converting into. It will be more useful
when reflection comes in and can decompose expressions without macros, then
*snitch* can become mostly macro-free. But we're not there yet!
—
Reply to this email directly, view it on GitHub
<#129 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABODVHRHT3BAXNQK2GIBS3TX47SSPANCNFSM6AAAAAA5LNNMTM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Merged and released; I assumed all went fine :) |
context: 1.2.2 release, header-only mode, newest VS (17.8.0 preview 2)
Even compiling a trivial
results in
error C2397: conversion from 'long' to 'size_t' requires a narrowing conversion
The text was updated successfully, but these errors were encountered: