C++ Tricks: IIFE for Complex Variable Initialization

1 · Bartłomiej Filipek · Oct. 21, 2019, 6:20 a.m.
Summary
What do you do when the code for a variable initialization is complicated? Do you move it to another method or write inside the current scope? In this blog post, I’d like to present a trick that allows computing a value for a variable, even a const variable, with a compact notation. Read more......