This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Implement C++20 constexpr <algorithm>, , and <array>
Am Fr., 29. März 2019 um 19:08 Uhr schrieb Ed Smith-Rowland via
libstdc++ <libstdc++@gcc.gnu.org>:
>
> I made __memmove and __memcmp inline so that, certainly for C++ < 20
> these don't pessimize.
Hmmh, are you sure? In my (not very up-to-date) code base I find that
c++config.h defines
#ifndef _GLIBCXX20_CONSTEXPR
# if __cplusplus > 201703L
# define _GLIBCXX20_CONSTEXPR constexpr
# else
# define _GLIBCXX20_CONSTEXPR
# endif
#endif
So unless __cplusplus > 201703L, there is no inline in sight.
- Daniel
- References:
- Implement C++20 constexpr <algorithm>, , and <array>
- From: Ed Smith-Rowland via libstdc++
- Re: Implement C++20 constexpr <algorithm>, , and <array>
- Re: Implement C++20 constexpr <algorithm>, , and <array>
- From: Ed Smith-Rowland via libstdc++
- Re: Implement C++20 constexpr <algorithm>, , and <array>
- From: Ed Smith-Rowland via libstdc++
- Re: Implement C++20 constexpr <algorithm>, , and <array>
- Re: Implement C++20 constexpr <algorithm>, , and <array>
- From: Ed Smith-Rowland via libstdc++
- Re: Implement C++20 constexpr <algorithm>, , and <array>
- Re: Implement C++20 constexpr <algorithm>, , and <array>
- From: Ed Smith-Rowland via libstdc++