1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Don't mix constructor delegation and variable instantiation.

This commit is contained in:
Thomas Harte 2023-12-22 12:29:27 -05:00
parent c07f8d8ef8
commit 66bc1fd6fd

View File

@ -154,8 +154,9 @@ struct Microcycle: public MicrocycleOperationStorage<op> {
assert(MicrocycleOperationStorage<op>::operation == dynamic_operation);
}
}
constexpr Microcycle(OperationT dynamic_operation, HalfCycles length) noexcept :
length(length), Microcycle(dynamic_operation) {}
constexpr Microcycle(OperationT dynamic_operation, HalfCycles length) noexcept : Microcycle(dynamic_operation) {
this->length = length;
}
constexpr Microcycle(HalfCycles length) noexcept {
static_assert(op != Operation::DecodeDynamically);
this->length = length;