|
|
|
|
|
by Fillipoman
3624 days ago
|
|
And with c++11 you can use a lambda capture to make it even cleaner (I'm not sure if this is the right syntax) [&fancyNumber]
{
// [Mathy stuff redacted]
fancyNumber = someIntermediateVariable / anotherIntermediateVariable;
}(); |
|