This static member did not have an instance under certain circumstances. A typical workaround for such a situation is to make it a local static of an accessor function. By this means the one definition rule is not violated and the object always instanciated. It is still optimized away by the compiler in case device::Base<...>::LEDs() is not called. Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>pull/745/head
parent
0599625bb6
commit
6894c0a49f
Loading…
Reference in new issue