Pieter Wuille
63317103c9
miniscript: make operator_mst consteval
...
It seems modern compilers don't realize that all invocations of operator""_mst
can be evaluated at compile time, despite the constexpr keyword.
Since C++20, we can force them to evaluate at compile time, turning all the
miniscript type constants into actual compile-time constants.
It appears that MSVC does not support consteval operator"" when used inside
certain expressions. For the few places where this happens, define a
constant outside the operator call.
Co-Authored-By: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
2024-05-03 11:38:14 -04:00
..
2024-04-06 15:46:53 +01:00
2024-04-18 10:27:25 +01:00
2024-01-23 11:49:32 +01:00
2023-11-14 17:41:54 +01:00
2024-01-23 11:49:32 +01:00
2023-11-28 02:30:09 +01:00
2023-12-06 15:44:38 +01:00
2023-11-30 11:27:21 +01:00
2023-11-14 08:45:30 +10:00
2023-11-18 00:15:22 +10:00
2023-11-14 08:45:30 +10:00
2023-11-21 13:15:44 +00:00
2024-01-09 15:15:36 -03:00
2023-12-31 16:19:56 +01:00
2024-04-18 10:27:25 +01:00
2024-03-18 10:32:00 -04:00
2024-04-22 09:36:36 -04:00
2023-11-30 11:28:19 +01:00
2024-04-18 10:18:44 +01:00
2023-12-07 11:06:05 +01:00
2023-11-07 10:21:51 +09:00
2023-11-28 12:42:07 +01:00
2024-03-05 10:01:24 -05:00
2023-12-04 15:39:15 -04:00
2024-02-26 16:13:12 +00:00
2024-01-10 16:21:16 +00:00
2023-11-18 03:01:03 +10:00
2023-11-28 17:49:41 +01:00
2023-11-21 13:15:44 +00:00
2024-05-03 11:38:14 -04:00
2023-12-14 20:10:21 +00:00
2024-04-18 10:27:25 +01:00
2024-03-12 12:59:02 -04:00
2024-02-29 14:13:58 -03:00
2024-01-23 11:49:32 +01:00
2024-03-17 11:35:01 -04:00
2024-04-09 14:53:34 +02:00
2024-04-28 15:39:10 -04:00
2023-11-14 17:41:26 +01:00
2024-01-02 12:41:01 +01:00
2024-05-02 00:16:33 +01:00
2023-11-14 08:45:30 +10:00
2024-02-15 14:37:01 +01:00
2024-02-15 14:37:01 +01:00
2023-11-30 11:28:19 +01:00
2024-04-22 09:36:36 -04:00
2023-12-07 11:06:16 +01:00
2023-11-28 12:42:07 +01:00
2023-11-23 17:57:53 +01:00
2023-11-14 08:45:30 +10:00
2023-11-14 08:45:30 +10:00
2023-11-30 11:27:54 +01:00
2023-11-14 08:45:30 +10:00
2023-10-31 18:19:37 +01:00
2024-04-24 23:26:24 +02:00
2024-04-10 17:01:27 +02:00
2023-11-30 11:27:21 +01:00
2023-11-30 11:28:19 +01:00
2023-11-30 11:28:19 +01:00
2024-05-01 13:34:37 +01:00
2024-04-26 10:28:27 +01:00
2024-03-05 21:18:44 +00:00
2023-11-30 11:28:19 +01:00
2023-11-30 11:28:19 +01:00
2023-11-14 17:41:26 +01:00