[C++17]Limiting Variable Scopes to if and switch