Justin Johansson wrote: > Your code as below, using auto to declare a temporary var in an if statement, > ahh, nice, > didn't know that. > > if (auto res = dg(current.data)) > return res; > > What other statement types can you generalized use of auto like this to? >
Sadly, it's an if-specific syntax. > Thank you for taking the time downs, > > -- Justin Anytime.