1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +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); assert(MicrocycleOperationStorage<op>::operation == dynamic_operation);
} }
} }
constexpr Microcycle(OperationT dynamic_operation, HalfCycles length) noexcept : constexpr Microcycle(OperationT dynamic_operation, HalfCycles length) noexcept : Microcycle(dynamic_operation) {
length(length), Microcycle(dynamic_operation) {} this->length = length;
}
constexpr Microcycle(HalfCycles length) noexcept { constexpr Microcycle(HalfCycles length) noexcept {
static_assert(op != Operation::DecodeDynamically); static_assert(op != Operation::DecodeDynamically);
this->length = length; this->length = length;