CppCon 2014: Lightning Talks - Martin Troxler 'Return Values Take A Closure Walk'

preview_player
Показать описание

--
Programming in C++ since the early 90'. | Responsible: | - Development of realtime controller systems running on RT Linux for industrial manufacturing machines. | Recent hot topics: | - ReSTful server framework in C++ | - (Unit) testing of new and legacy C++ code
--

*-----*
*-----*
Рекомендации по теме
Комментарии
Автор

IMHO it is Non-Virtual Interface idiom (NVI)

ContextManager is abstract class with NVI. So later we can realize CallWithinImpl in inherited classes (for example, MutexContextManager, NoexceptContextManager, ProfileContextManager etc)

DmitryLoginov
Автор

Am I missing something here? I don't understand why you would keep callWithinImpl after making the template version.

LB_