- 03 Apr, 2019 1 commit
-
-
Max Kellermann authored
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
-
- 19 Feb, 2019 1 commit
-
-
Max Kellermann authored
-
- 14 Jan, 2019 1 commit
-
-
Max Kellermann authored
Similar to 5a5229b4: use more C++14 constexpr.
-
- 04 Jan, 2019 1 commit
-
-
Zoltán Mizsei authored
fails on it. This fixes.
-
- 02 Nov, 2018 1 commit
-
-
Max Kellermann authored
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
-
- 21 Aug, 2018 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-