Re: /usr/include/c++/11/type_traits:3164:1: error: template with C linkage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/02/2021 12:24, Kevin Kofler via devel wrote:
Kalev Lember wrote:
The glib upstream MR got rejected, which means all consumers are going
to have to fix their use of glib headers to not include them in an
extern "C" block.

That is extremely unhelpful. What is the point of rejecting a 2-line (!)
patch that keeps backwards compatibility and avoids having to fix dozens of
other packages, which potentially have this #include in dozens of places
each?

Note that wrapping the header include in an extern declaration violates C++ standard requirements. ("A translation unit shall include a header only outside of any declaration or definition", [using.headers]/3)
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux