mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
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> |
||
|---|---|---|
| .. | ||
| descriptor.cpp | ||
| descriptor.h | ||
| interpreter.cpp | ||
| interpreter.h | ||
| keyorigin.h | ||
| miniscript.cpp | ||
| miniscript.h | ||
| script.cpp | ||
| script.h | ||
| script_error.cpp | ||
| script_error.h | ||
| sigcache.cpp | ||
| sigcache.h | ||
| sign.cpp | ||
| sign.h | ||
| signingprovider.cpp | ||
| signingprovider.h | ||
| solver.cpp | ||
| solver.h | ||