Cpp / Qt: Reduce boost usage (memory and tuple)