Jan Engelhardt
85f640d0bb
build: work around compile failure under g++-9
...
Under gcc-9 (e.g. used by Ubuntu 20.04), compilation fails with:
```
/usr/include/c++/9/variant: In instantiation of ‘constexpr const size_t std::variant_size_v<user_var>’:
/usr/include/c++/9/variant:1023:10: required from ‘struct std::__detail::__variant::__gen_vtable<true, void, user_var::operator++(int)::<lambda(auto:22&&)>&&, user_var&>’
/usr/include/c++/9/variant:1656:23: required from ‘constexpr decltype(auto) std::__do_visit(_Visitor&&, _Variants&& ...) [with bool __use_index = false; bool __same_return_types = true; _Visitor = user_var::operator++(int)::<lambda(auto:22&&)>; _Variants = {user_var&}]’
/usr/include/c++/9/variant:1672:29: required from ‘constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...) [with _Visitor = user_var::operator++(int)::<lambda(auto:22&&)>; _Variants = {user_var&}; std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> = void]’
scripts/DallasFuncs.h:21:75: required from here
/usr/include/c++/9/variant:94:29: error: incomplete type ‘std::variant_size<user_var>’ used in nested name specifier
94 | inline constexpr size_t variant_size_v = variant_size<_Variant>::value;
```
Judging from the date of P2162, calling std::visit with std::variant
derivatives is only specified for C++20 and onwards. But Descent3
only asks for C++17.
Since ``class user_var`` does not have any members that need would
need to be accessed via std::visit, we can "add a hint" and
explicitly specify the base type.
2024-09-18 22:15:41 +02:00
..
2024-09-15 23:07:38 +03:00
2024-09-09 15:29:40 +02:00
2024-09-09 15:29:40 +02:00
2024-05-30 03:35:17 -04:00
2024-09-09 15:29:40 +02:00
2024-09-09 15:29:40 +02:00
2024-09-09 15:29:40 +02:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-09-09 15:29:40 +02:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-03 13:26:51 +02:00
2024-09-09 15:29:40 +02:00
2024-09-09 15:42:00 +02:00
2024-09-18 22:15:41 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-03 13:26:51 +02:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:42:00 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-09-03 13:26:51 +02:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:42:00 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-08-31 12:13:44 +02:00
2024-08-20 23:09:27 +03:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-09-03 13:26:51 +02:00
2024-09-09 15:29:38 +02:00
2024-09-09 15:29:38 +02:00
2024-09-09 14:57:44 +02:00
2024-09-09 14:57:44 +02:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-05-30 03:35:17 -04:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00
2024-09-09 15:29:40 +02:00
2024-04-15 21:43:29 -06:00