[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hurd,commited] hurd: Make error_t an int in C++
From: |
Florian Weimer |
Subject: |
Re: [hurd,commited] hurd: Make error_t an int in C++ |
Date: |
Tue, 08 Aug 2023 16:26:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
* Samuel Thibault via Libc-alpha:
> Hello,
>
> Florian Weimer, le mar. 08 août 2023 16:14:07 +0200, a ecrit:
>> > +#ifdef __cplusplus
>> > +/* Unfortunately, in C++ int and enum __error_t_codes are not
>> > + interoperable... */
>> > +typedef int error_t;
>> > +#else
>> > typedef enum __error_t_codes error_t;
>> > +#endif
>>
>> Doesn't this change C++ name mangling?
>
> Actually, no, I'm getting 'i' in both cases ; it is apparently stricly
> an API thing.
Huh, right, it would have to be an enum class to matter.
Thanks,
Florian