Hacky c++11 switch

Created for testing purposes only.