Having a guitar be in tune across every key is not strictly impossible [1], but it sure isn't easy.
[1] http://www.truetemperament.com/site/index.php?go=2&sgo=3
[1] http://www.truetemperament.com/site/index.php?go=2&sgo=3
More info here: http://www.truetemperament.com/site/index.php?go=4#A1
Basically, while studying temperament is interesting, the reality is it rarely causes practical issues. Most pianos are tuned with equal temperament, which is good enough and almost every other western instrument has enough flexibility to adjust "on the fly."