Templates and __builtin-constant_p

I think you are misusing Flag in your first line. Can you explain what the intention is?