Oh, you can get the information at compile time as well. https://godbolt.org/z/hTYbTE8j8 (or https://godbolt.org/z/K1M68sY3Y but this will be tricky in a larger code base)
You can't fool yourself and have to handle all cases: https://godbolt.org/z/4GqMdPej3