summaryrefslogtreecommitdiff
path: root/src/net/IPv6Address.hxx
AgeCommit message (Collapse)Author
2021-02-12use [[gnu::pure]] instead of gcc_pureMax Kellermann
This is semi-standard and doesn't require the util/Compiler.h header.
2020-11-30net/SocketAddress: add CastTo()Max Kellermann
2020-11-30net/IPv[46]Address: pass SocketAddress by value to Cast()Max Kellermann
2020-11-30net/IPv[46]Address: add Cast(const sockaddr_in&)Max Kellermann
2020-09-16remove GCC5 hacksRosen Penev
GCC5 cannot build mpd. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-12replace stdint.h with cstdintRosen Penev
The former is deprecated by C++14. The standard says they are the same: The header defines all types and macros the same as the C standard library header<stdint.h>. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-07-03net/ToString: move UnmapV4() to class IPv6AddressMax Kellermann
2019-04-04Merge branch 'v0.21.x'Max Kellermann
2019-04-03net/IPv[46]Address: add cast to void* to fix GCC9 build failureMax Kellermann
Fixes: src/net/IPv4Address.hxx: In member function 'constexpr IPv4Address::operator SocketAddress() const': src/net/IPv4Address.hxx:171:24: error: a reinterpret_cast is not a constant expression 171 | return SocketAddress((const struct sockaddr *)&address, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/net/IPv6Address.hxx: In member function 'constexpr IPv6Address::operator SocketAddress() const': src/net/IPv6Address.hxx:138:24: error: a reinterpret_cast is not a constant expression 138 | return SocketAddress((const struct sockaddr *)&address, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Closes https://github.com/MusicPlayerDaemon/MPD/issues/522
2019-03-08system/ByteOrder: move to util/Max Kellermann
2019-02-19net/IPv[46]Address: update copyrightMax Kellermann
2019-01-14net/IPv[46]Address: make the initializers even more portableMax Kellermann
Similar to 5a5229b49943c7032d83ae665552b4dc3e334820: use more C++14 constexpr.
2019-01-04Build fix. This struct is the same on Haiku and on Linux, still gccZoltán Mizsei
fails on it. This fixes.
2018-11-02net/IPv[46]Address: make the initializers more portableMax Kellermann
Thanks to C++14, we can declare and fill variables inside `constexpr` functions. This means me can stop make assumptions on the `struct` layouts without losing `constexpr`. Closes #393
2018-08-21net/IPv6Address: pass reference to Cast()Max Kellermann
2018-08-21net/IPv6Address: new classMax Kellermann