3 ms·
make_* functions are no longer necessary in C++17 which adds "Class template argument deduction" [1]. You can now do std::pair p{"aaa", 123}; and Finally
by frankzinger 8y ago
make_* functions are no longer necessary in C++17 which adds "Class template argument deduction" [1]. You can now do
std::pair p{"aaa", 123};
and
Finally guard{[]{cleanup();}};
without specifying template arguments.
[1] https://en.cppreference.com/w/cpp/language/class_template_argument_deduction https://en.cppreference.com/w/cpp/language/class_template_ar...
- Matthias247 8y agoThx, I wasn't aware about this feature yet!