Workaround for decltype and :: not working together