Revert "miniscript: make operator_mst consteval"

This reverts commit 63317103c9.

operator""_mst has been manually adjusted according to commit
faf2162565
This commit is contained in:
Hennadii Stepanov
2025-06-25 11:32:57 +01:00
parent ff1ee102c4
commit 14052162b1
3 changed files with 31 additions and 38 deletions

View File

@@ -234,8 +234,7 @@ Type ComputeType(Fragment fragment, Type x, Type y, Type z, const std::vector<Ty
Type acc_tl = "k"_mst;
for (size_t i = 0; i < sub_types.size(); ++i) {
Type t = sub_types[i];
static constexpr auto WDU{"Wdu"_mst}, BDU{"Bdu"_mst};
if (!(t << (i ? WDU : BDU))) return ""_mst; // Require Bdu, Wdu, Wdu, ...
if (!(t << (i ? "Wdu"_mst : "Bdu"_mst))) return ""_mst; // Require Bdu, Wdu, Wdu, ...
if (!(t << "e"_mst)) all_e = false;
if (!(t << "m"_mst)) all_m = false;
if (t << "s"_mst) num_s += 1;