Skip to content

Commit 2ec8b43

Browse files
authored
Merge branch 'development' into fix/pwm-reorder
2 parents 8de139c + 8835bdd commit 2ec8b43

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
release: minor
2+
summary: It is just a one word change, makes it possible to use `Board::instanceof()` to get a `constexpr auto& obj`. It works perfectly as long as you don't try using the reference before `Board::init()`.

Inc/ST-LIB.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ template <BoardFaultPolicy FaultPolicyT, auto&... devs> struct Board {
364364
}
365365
}
366366

367-
template <auto& Target> static auto& instance_of() {
367+
template <auto& Target> constexpr static auto& instance_of() {
368368
using DevT = std::remove_cvref_t<decltype(Target)>;
369369
using Domain = typename DevT::domain;
370370

0 commit comments

Comments
 (0)