Open llogiq opened 7 years ago
No, sadly you cannot implement equivalent for black_box
without inline assembly. While there are many ways to implement a function which inhibits optimisations for a value, only the implementation with inline assembly is able to compile down to literally nothing.
For example, it should be easy enough to build test::black_box with this, right?