Fucking shit. It compiles properly with g++ but not with clang. That's some shit. -_- I'll try to figure it out some other time