GCC doesn't want to deduct this like it should.