got stuck on a c++ problem the other day (for my home made game engine) - chatgpt unfortunately couldn't help me - but really tried hard - so took a couple of days away from it and finally, in the shower - the answer arrived!