Skip to content

Commit 4548070

Browse files
committed
feat: Make ST-LIB::instance_of() constexpr (it works, trust me)
1 parent 03c9af5 commit 4548070

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)